aboutsummaryrefslogtreecommitdiff
path: root/sys/bsm
diff options
context:
space:
mode:
authorPawel Jakub Dawidek <pjd@FreeBSD.org>2014-04-07 20:44:00 +0000
committerPawel Jakub Dawidek <pjd@FreeBSD.org>2014-04-07 20:44:00 +0000
commit4e1ad9d117695c903602c6ff90abcdb772849b53 (patch)
treeb7c686b0f7003c3941b77357fe997ffe7b5c10ba /sys/bsm
parent3e6034e2df2100b0f54ba5c4a1fed96bca53d230 (diff)
downloadsrc-4e1ad9d117695c903602c6ff90abcdb772849b53.tar.gz
src-4e1ad9d117695c903602c6ff90abcdb772849b53.zip
IFp4 @1192291:
- Don't include sys/caprights.h, leverage the fact that cap_rights_t is also defined in sys/types.h. - Include sys/types.h directly. - For systems that do not have cap_rights_t, define it, so we can use it in au_to_rights() prototype. Discussed with: rwatson
Notes
Notes: svn path=/head/; revision=264236
Diffstat (limited to 'sys/bsm')
-rw-r--r--sys/bsm/audit_record.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/sys/bsm/audit_record.h b/sys/bsm/audit_record.h
index 7e6074f3d344..5da5e4f295f4 100644
--- a/sys/bsm/audit_record.h
+++ b/sys/bsm/audit_record.h
@@ -33,8 +33,8 @@
#ifndef _BSM_AUDIT_RECORD_H_
#define _BSM_AUDIT_RECORD_H_
+#include <sys/types.h>
#include <sys/time.h> /* struct timeval */
-#include <sys/caprights.h> /* cap_rights_t */
/*
* Token type identifiers.
@@ -191,6 +191,13 @@ struct sockaddr_un;
struct vnode_au_info;
#endif
+#ifndef _CAP_RIGHTS_T_DECLARED
+#define _CAP_RIGHTS_T_DECLARED
+struct cap_rights;
+
+typedef struct cap_rights cap_rights_t;
+#endif
+
int au_open(void);
int au_write(int d, token_t *m);
int au_close(int d, int keep, short event);