2 .\" Copyright (c) 2005 Robert N. M. Watson
3 .\" Copyright (c) 2005 Tom Rhodes
4 .\" Copyright (c) 2005 Wayne J. Salamon
5 .\" All rights reserved.
7 .\" Redistribution and use in source and binary forms, with or without
8 .\" modification, are permitted provided that the following conditions
10 .\" 1. Redistributions of source code must retain the above copyright
11 .\" notice, this list of conditions and the following disclaimer.
12 .\" 2. Redistributions in binary form must reproduce the above copyright
13 .\" notice, this list of conditions and the following disclaimer in the
14 .\" documentation and/or other materials provided with the distribution.
16 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
17 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
20 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
28 .\" $P4: //depot/projects/trustedbsd/openbsm/man/auditon.2#11 $
35 .Nd "configure system audit parameters"
39 .Fn auditon "int cmd" "void *data" "u_int length"
43 system call is used to manipulate various audit control operations.
47 should point to a structure whose type depends on the command.
57 may be any of the following:
58 .Bl -tag -width ".It Dv A_GETPINFO_ADDR"
60 Set audit policy flags.
66 value set to one of the audit
67 policy control values defined in
76 case, the action will continue regardless if
77 an event will not be audited.
82 will result if an event will not be written to the
88 Set the kernel preselection masks (success and failure).
94 structure containing the mask values.
95 These masks are used for non-attributable audit event preselection.
97 Set kernel audit queue parameters.
103 structure containing the
104 kernel audit queue control settings:
107 .Dq "output buffer size" ,
108 .Dq "percent min free disk space" ,
111 (not currently used).
122 Set the current auditing condition.
128 value containing the new
129 audit condition, one of
135 Set the event class preselection mask for an audit event.
141 structure containing the audit event and mask.
143 Set the preselection masks for a process.
149 structure that contains the given process's audit
150 preselection masks for both success and failure.
152 Set the maximum size of the audit log file.
160 field set to the maximum audit log file size.
162 indicates no limit to the size.
167 Return the event to class mapping for the designated audit event.
178 Return the audit settings for a process.
184 structure which will be set to contain
185 the audit ID, preselection mask, terminal ID, and audit session
186 ID of the given process.
187 .It Dv A_GETPINFO_ADDR
191 Return the current kernel preselection masks.
197 structure which will be set to
198 the current kernel preselection masks for non-attributable events.
200 Return the current audit policy setting.
206 value which will be set to
207 one of the current audit policy flags.
214 Return the current kernel audit queue control parameters.
220 structure which will be set to the current
221 kernel audit queue control parameters.
223 Returns the maximum size of the audit log file.
232 field will be set to the maximum audit log file size.
233 A value of 0 indicates no limit to the size.
237 will be set to the current audit log file size.
239 .\" [COMMENTED OUT]: Valid description, not yet implemented.
240 .\" Return the current working directory as stored in the audit subsystem.
244 .\" [COMMENTED OUT]: Valid description, not yet implemented.
245 .\"Stores and returns the current active root as stored in the audit
250 .\" [COMMENTED OUT]: Valid description, not yet implemented.
251 .\"Return the statistics stored in the audit system.
255 Return the current auditing condition.
261 value which will be set to
262 the current audit condition, either
267 Send a trigger to the audit daemon.
273 value set to one of the acceptable
275 .Dv AUDIT_TRIGGER_LOW_SPACE
276 (low disk space where the audit log resides),
277 .Dv AUDIT_TRIGGER_OPEN_NEW
278 (open a new audit log file),
279 .Dv AUDIT_TRIGGER_READ_FILE
283 .Dv AUDIT_TRIGGER_CLOSE_AND_DIE
284 (close the current log file and exit),
286 .Dv AUDIT_TRIGGER_NO_SPACE
287 (no disk space left for audit log file).
294 function will fail if:
297 Returned by options not yet implemented.
299 A failure occurred while data transferred to or from
302 Illegal argument was passed by a system call.
304 The process does not have sufficient permission to complete
310 command is specific to the
312 and Mac OS X implementations, and is not present in Solaris.
317 .Xr getaudit_addr 2 ,
320 .Xr setaudit_addr 2 ,
324 The OpenBSM implementation was created by McAfee Research, the security
325 division of McAfee Inc., under contract to Apple Computer Inc.\& in 2004.
326 It was subsequently adopted by the TrustedBSD Project as the foundation for
327 the OpenBSM distribution.
330 This software was created by McAfee Research, the security research division
331 of McAfee, Inc., under contract to Apple Computer Inc.
332 Additional authors include
337 The Basic Security Module (BSM) interface to audit records and audit event
338 stream format were defined by Sun Microsystems.
340 This manual page was written by
341 .An Tom Rhodes Aq trhodes@FreeBSD.org ,
342 .An Robert Watson Aq rwatson@FreeBSD.org ,
344 .An Wayne Salamon Aq wsalamon@FreeBSD.org .