diff options
author | rwatson <rwatson@FreeBSD.org> | 2006-03-04 16:45:52 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2006-03-04 16:45:52 +0000 |
commit | a8790234d5db9f72a75129b10df55da1475012a4 (patch) | |
tree | 1727bc17eb9e6fc1c3c270d72438a9c02374fe6b /contrib/openbsm/bsm/audit_internal.h | |
parent | 57ceefb9d9f44e8ea3884412a34bf5070f8fdf14 (diff) | |
parent | ab71945909ae42af4e5fa0802d62298315b31281 (diff) | |
download | FreeBSD-src-a8790234d5db9f72a75129b10df55da1475012a4.zip FreeBSD-src-a8790234d5db9f72a75129b10df55da1475012a4.tar.gz |
This commit was generated by cvs2svn to compensate for changes in r156283,
which included commits to RCS files with non-trunk default branches.
Diffstat (limited to 'contrib/openbsm/bsm/audit_internal.h')
-rw-r--r-- | contrib/openbsm/bsm/audit_internal.h | 28 |
1 files changed, 24 insertions, 4 deletions
diff --git a/contrib/openbsm/bsm/audit_internal.h b/contrib/openbsm/bsm/audit_internal.h index 2d98aae..00f44bf 100644 --- a/contrib/openbsm/bsm/audit_internal.h +++ b/contrib/openbsm/bsm/audit_internal.h @@ -34,11 +34,15 @@ * * @APPLE_BSD_LICENSE_HEADER_END@ * - * $P4: //depot/projects/trustedbsd/openbsm/bsm/audit_internal.h#7 $ + * $P4: //depot/projects/trustedbsd/openbsm/bsm/audit_internal.h#13 $ */ -#ifndef _LIBBSM_INTERNAL_H -#define _LIBBSM_INTERNAL_H +#ifndef _AUDIT_INTERNAL_H +#define _AUDIT_INTERNAL_H + +#if defined(__linux__) && !defined(__unused) +#define __unused +#endif /* * audit_internal.h contains private interfaces that are shared by user space @@ -47,6 +51,22 @@ * broken with future releases of OpenBSM, which may delete, modify, or * otherwise break these interfaces or the assumptions they rely on. */ +struct au_token { + u_char *t_data; + size_t len; + TAILQ_ENTRY(au_token) tokens; +}; + +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; + /* We could determined the header and trailer sizes by * defining appropriate structures. We hold off that approach @@ -96,4 +116,4 @@ #define ADD_STRING(loc, data, size) ADD_MEM(loc, data, size) -#endif /* !_LIBBSM_INTERNAL_H_ */ +#endif /* !_AUDIT_INTERNAL_H_ */ |