2 .\" Copyright (c) 2005, Sun Microsystems, Inc. All Rights Reserved.
3 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
4 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
5 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
6 .TH GETFAUDITFLAGS 3BSM "Mar 6, 2017"
8 getfauditflags \- generate process audit state
12 \fBcc\fR [ \fIflag\fR... ] \fIfile\fR... \fB-lbsm\fR [ \fIlibrary\fR... ]
13 #include <sys/param.h>
14 #include <bsm/libbsm.h>
16 \fBint\fR \fBgetfauditflags\fR(\fBau_mask_t *\fR\fIusremasks\fR, \fBau_mask_t *\fR\fIusrdmasks\fR,
17 \fBau_mask_t *\fR\fIlastmasks\fR);
22 The \fBgetfauditflags()\fR function generates a process audit state by
23 combining the audit masks passed as parameters with the system audit masks.
26 The \fIusremasks\fR argument points to \fBau_mask_t\fR fields that contains two
27 values. The first value defines which events are always to be audited when they
28 succeed. The second value defines which events are always to be audited when
32 The \fIusrdmasks\fR argument points to \fBau_mask_t\fR fields that contains two
33 values. The first value defines which events are never to be audited when they
34 succeed. The second value defines which events are never to be audited when
38 The output of this function is stored in \fIlastmasks\fR, a pointer of type
39 \fBau_mask_t\fR as well. The first value defines which events are to be audited
40 when they succeed and the second defines which events are to be audited when
44 Both \fIusremasks\fR and \fIusrdmasks\fR override the values in the system
48 Upon successful completion, \fBgetfauditflags()\fR returns 0. Otherwise it
49 returns \fB\(mi1\fR\&.
52 See \fBattributes\fR(5) for descriptions of the following attributes:
60 ATTRIBUTE TYPE ATTRIBUTE VALUE
67 \fBgetauditflags\fR(3BSM), \fBaudit.log\fR(4), \fBattributes\fR(5)