summaryrefslogtreecommitdiffstats
path: root/sys/bsm/audit_record.h
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2009-04-19 14:53:17 +0000
committerrwatson <rwatson@FreeBSD.org>2009-04-19 14:53:17 +0000
commit7e3aff1dc199846d15b3c479bff793353b8cfe8f (patch)
tree34d6b55d9d4235f31e08a9864553465396f0a407 /sys/bsm/audit_record.h
parentada9604fd24dc29bff6c92bc0943439bc14011f2 (diff)
downloadFreeBSD-src-7e3aff1dc199846d15b3c479bff793353b8cfe8f.zip
FreeBSD-src-7e3aff1dc199846d15b3c479bff793353b8cfe8f.tar.gz
Merge OpenBSM 1.1 changes to the FreeBSD 8.x kernel:
- Add and use mapping of fcntl(2) commands to new BSM constant space. - Adopt (int) rather than (long) arguments to a number of auditon(2) commands, as has happened in Solaris, and add compatibility code to handle the old comments. Note that BSM_PF_IEEE80211 is partially but not fully removed, as the userspace OpenBSM 1.1alpha5 code still depends on it. Once userspace is updated, I'll GCC the kernel constant. MFC after: 2 weeks Sponsored by: Apple, Inc. Obtained from: TrustedBSD Project Portions submitted by: sson
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 5d9306a..9d6be04 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
* $FreeBSD$
*/
@@ -286,10 +286,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