2 .\" Copyright (c) 2008-2011 Apple Inc. All rights reserved.
4 .\" @APPLE_OSREFERENCE_LICENSE_HEADER_START@
6 .\" This file contains Original Code and/or Modifications of Original Code
7 .\" as defined in and that are subject to the Apple Public Source License
8 .\" Version 2.0 (the 'License'). You may not use this file except in
9 .\" compliance with the License. The rights granted to you under the License
10 .\" may not be used to create, or enable the creation or redistribution of,
11 .\" unlawful or unlicensed copies of an Apple operating system, or to
12 .\" circumvent, violate, or enable the circumvention or violation of, any
13 .\" terms of an Apple operating system software license agreement.
15 .\" Please obtain a copy of the License at
16 .\" http://www.opensource.apple.com/apsl/ and read it before using this file.
18 .\" The Original Code and all software distributed under the License are
19 .\" distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
20 .\" EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
21 .\" INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
22 .\" FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
23 .\" Please see the License for the specific language governing rights and
24 .\" limitations under the License.
26 .\" @APPLE_OSREFERENCE_LICENSE_HEADER_END@
33 .Nm getaudit(NOW DEPRECATED)
34 .Nd "retrieve audit session state"
37 .In bsm/audit_session.h
39 .Fn getaudit_addr "auditinfo_addr_t *auditinfo_addr" "u_int length"
40 .Sh SYNOPSIS (NOW DEPRECATED)
43 .Fn getaudit "auditinfo_t *auditinfo"
48 retrieves extended state via
55 data structure supports Terminal IDs incuding those with larger addresses such
56 as those used in IP version 6. It is defined as follows:
59 struct auditinfo_addr {
60 au_id_t ai_auid; /* Audit user ID. */
61 au_mask_t ai_mask; /* Audit masks. */
62 au_tid_addr_t ai_termid; /* Terminal ID. */
63 au_asid_t ai_asid; /* Audit session ID. */
64 u_int64_t ai_flags; /* Audit session flags. */
66 typedef struct auditinfo_addr auditinfo_addr_t;
72 variable contains the audit identifier which is recorded in the audit log for
73 each event the process caused.
77 data structure defines the bit mask for auditing successful and failed events
78 out of the predefined list of event classes. It is defined as follows:
82 unsigned int am_success; /* success bits */
83 unsigned int am_failure; /* failure bits */
85 typedef struct au_mask au_mask_t;
91 data structure which includes a larger address storage field and an additional
92 field with the type of address stored:
100 typedef struct au_tid_addr au_tid_addr_t;
106 variable contains the audit session ID which is recorded with every event
107 caused by the process.
111 variable contains flags that are opaque to the kernel and used by various
115 .Ao Pa bsm/audit_session.h Ac
116 header file for more information
117 and flag definitions for this platform.
119 Without appropriate privilege the audit mask fields will be set to all
124 system call (NOW DEPRECATED)
125 retrieves the active audit session state for the current process via the
132 data structure (NOW DEPRECATED) is defined as follows:
136 au_id_t ai_auid; /* Audit user ID */
137 au_mask_t ai_mask; /* Audit masks */
138 au_tid_t ai_termid; /* Terminal ID */
139 au_asid_t ai_asid; /* Audit session ID */
141 typedef struct auditinfo auditinfo_t;
147 data structure (NOW DEPRECATED) defines the Terminal ID recorded with
148 every event caused by the process. It is defined as follows:
155 typedef struct au_tid au_tid_t;
159 .Rv -std getaudit_addr
163 function will fail if:
166 A failure occurred while data transferred to or from
169 Illegal argument was passed by a system call.
173 argument indicates an overflow condition will occur.
175 The address is too big.
185 The OpenBSM implementation was created by McAfee Research, the security
186 division of McAfee Inc., under contract to Apple Computer Inc.\& in 2004.
187 It was subsequently adopted by the TrustedBSD Project as the foundation for
188 the OpenBSM distribution.
193 in Mac OS X 10.7 to support longer terminal addresses such as those used
196 is now deprecated and
198 should be used instead.
201 This software was created by McAfee Research, the security research division
202 of McAfee, Inc., under contract to Apple Computer Inc.
203 Additional authors include
208 The Basic Security Module (BSM) interface to audit records and audit event
209 stream format were defined by Sun Microsystems.
211 This manual page was written by
212 .An Robert Watson Aq rwatson@FreeBSD.org
214 .An Stacey Son Aq sson@FreeBSD.org .