diff options
author | rwatson <rwatson@FreeBSD.org> | 2006-03-04 16:54:21 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2006-03-04 16:54:21 +0000 |
commit | d39e49362c63ea26bc2cae4fe28cc6bd819845b8 (patch) | |
tree | 20ddb0eec8675bc05262a37d601c0c433c2af943 /sys/bsm/audit.h | |
parent | 736123b8c2af1373e8a60c57442c94cae1b22475 (diff) | |
download | FreeBSD-src-d39e49362c63ea26bc2cae4fe28cc6bd819845b8.zip FreeBSD-src-d39e49362c63ea26bc2cae4fe28cc6bd819845b8.tar.gz |
Update src/sys/bsm for OpenBSM 1.0 alpha 5 changes:
- Add new comments.
- Move private data structures from public audit.h to audit_internal.h to
avoid exposing queue.h macros to undesiring consumers.
Obtained from: TrustedBSD Project
Diffstat (limited to 'sys/bsm/audit.h')
-rw-r--r-- | sys/bsm/audit.h | 25 |
1 files changed, 7 insertions, 18 deletions
diff --git a/sys/bsm/audit.h b/sys/bsm/audit.h index 2522116..b21b951 100644 --- a/sys/bsm/audit.h +++ b/sys/bsm/audit.h @@ -30,7 +30,7 @@ * * @APPLE_BSD_LICENSE_HEADER_END@ * - * $P4: //depot/projects/trustedbsd/audit3/sys/bsm/audit.h#22 $ + * $P4: //depot/projects/trustedbsd/audit3/sys/bsm/audit.h#24 $ * $FreeBSD$ */ @@ -258,25 +258,11 @@ struct auditpinfo_addr { }; typedef struct auditpinfo_addr auditpinfo_addr_t; -/* Token and record structures. */ - -struct au_token { - u_char *t_data; - size_t len; - TAILQ_ENTRY(au_token) tokens; -}; +/* + * Contents of token_t are opaque outside of libbsm. + */ typedef struct au_token token_t; -struct au_record { - char used; /* Record currently in use? */ - int desc; /* Descriptor for record. */ - TAILQ_HEAD(, au_token) token_q; /* Queue of BSM tokens. */ - u_char *data; - size_t len; - LIST_ENTRY(au_record) au_rec_q; -}; -typedef struct au_record au_record_t; - /* * Kernel audit queue control parameters. */ @@ -328,6 +314,9 @@ struct au_evclass_map { }; typedef struct au_evclass_map au_evclass_map_t; +/* + * Audit system calls. + */ #if !defined(_KERNEL) && !defined(KERNEL) int audit(const void *, int); int auditon(int, void *, int); |