2 .\" Copyright (c) 2017 Peter Tribble
3 .\" Copyright (c) 2005, Sun Microsystems, Inc. All Rights Reserved.
4 .\" 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.
5 .\" 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.
6 .\" 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]
7 .TH AU_USER_MASK 3BSM "Mar 6, 2017"
9 au_user_mask \- get user's binary preselection mask
13 \fBcc\fR [ \fIflag\fR... ] \fIfile\fR... \fB-lbsm\fR \fB -lsocket \fR \fB -lnsl \fR [ \fIlibrary\fR... ]
14 #include <bsm/libbsm.h>
16 \fBint\fR \fBau_user_mask\fR(\fBchar *\fR\fIusername\fR, \fBau_mask_t *\fR\fImask_p\fR);
21 The \fBau_user_mask()\fR function reads the default, system wide audit classes,
22 combines them with the per-user audit classes, and updates the binary
23 preselection mask pointed to by \fImask_p\fR with the combined value.
26 The audit preselection mask is constructed as follows:
31 (system default success flags + per-user always success flags)
32 - per-user never success flags
34 (system default failure flags + per-user always failure flags)
35 - per-user never failure flags
40 The \fBau_user_mask()\fR function fails only if the system wide audit flags
41 could not be retrieved.
44 Upon successful completion, \fBau_user_mask()\fR returns 0.
48 See \fBattributes\fR(5) for descriptions of the following attributes:
56 ATTRIBUTE TYPE ATTRIBUTE VALUE
58 Interface Stability Stable
65 \fBlogin\fR(1), \fBgetaudit\fR(2), \fBsetaudit\fR(2),
66 \fBau_preselect\fR(3BSM), \fBattributes\fR(5)
69 The \fBau_user_mask()\fR function should be called by programs like
70 \fBlogin\fR(1) which set a process's preselection mask with \fBsetaudit\fR(2).
71 \fBgetaudit\fR(2) should be used to obtain audit characteristics for the
75 If global zone auditing is set, a local zone cannot reduce the default