summaryrefslogtreecommitdiffstats
path: root/sys/bsm/audit_record.h
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2009-04-19 15:18:16 +0000
committerrwatson <rwatson@FreeBSD.org>2009-04-19 15:18:16 +0000
commit54523de9b2bce64154b5be9c25e07f3c840f1144 (patch)
tree22c3585be4b5eb8d78c909ee75f55b83ae7950f9 /sys/bsm/audit_record.h
parent7c0114b0370e5bc52bc1d0397cccf98036ec38e1 (diff)
downloadFreeBSD-src-54523de9b2bce64154b5be9c25e07f3c840f1144.zip
FreeBSD-src-54523de9b2bce64154b5be9c25e07f3c840f1144.tar.gz
Vendor import of OpenBSM 1.1, which incorporates the following changes
since the last imported OpenBSM release: OpenBSM 1.1 - Change auditon(2) parameters and data structures to be 32/64-bit architecture independent. Add more information to man page about auditon(2) parameters. - Add wrapper functions for auditon(2) to use legacy commands when the new commands are not supported. - Add default for 'expire-after' in audit_control to expire trail files when the audit directory is more than 10 megabytes ('10M'). - Interface to convert between local and BSM fcntl(2) command values has been added: au_bsm_to_fcntl_cmd(3) and au_fcntl_cmd_to_bsm(3), along with definitions of constants in audit_fcntl.h. - A bug, introduced in OpenBSM 1.1 alpha 4, in which AUT_RETURN32 tokens generated by audit_submit(3) were improperly encoded has been fixed. - Fix example in audit_submit(3) man page. Also, make it clear that we want the audit ID as the argument. - A new audit event class 'aa', for post-login authentication and authorization events, has been added. Obtained from: TrustedBSD Project Sponsored by: Apple, Inc.
Diffstat (limited to 'sys/bsm/audit_record.h')
-rw-r--r--sys/bsm/audit_record.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/bsm/audit_record.h b/sys/bsm/audit_record.h
index c8180323..f8dced8 100644
--- a/sys/bsm/audit_record.h
+++ b/sys/bsm/audit_record.h
@@ -1,5 +1,5 @@
/*-
- * Copyright (c) 2005-2008 Apple Inc.
+ * Copyright (c) 2005-2009 Apple Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -26,7 +26,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $P4: //depot/projects/trustedbsd/openbsm/sys/bsm/audit_record.h#9 $
+ * $P4: //depot/projects/trustedbsd/openbsm/sys/bsm/audit_record.h#10 $
*/
#ifndef _BSM_AUDIT_RECORD_H_
@@ -285,10 +285,12 @@ token_t *au_to_zonename(const char *zonename);
*/
int au_bsm_to_domain(u_short bsm_domain, int *local_domainp);
int au_bsm_to_errno(u_char bsm_error, int *errorp);
+int au_bsm_to_fcntl_cmd(u_short bsm_fcntl_cmd, int *local_fcntl_cmdp);
int au_bsm_to_socket_type(u_short bsm_socket_type,
int *local_socket_typep);
u_short au_domain_to_bsm(int local_domain);
u_char au_errno_to_bsm(int local_errno);
+u_short au_fcntl_cmd_to_bsm(int local_fcntl_command);
u_short au_socket_type_to_bsm(int local_socket_type);
__END_DECLS
OpenPOWER on IntegriCloud