summaryrefslogtreecommitdiff
path: root/usr/src/man/man2/getaudit.2
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/man/man2/getaudit.2')
-rw-r--r--usr/src/man/man2/getaudit.217
1 files changed, 3 insertions, 14 deletions
diff --git a/usr/src/man/man2/getaudit.2 b/usr/src/man/man2/getaudit.2
index f7c498fda0..9094c2c052 100644
--- a/usr/src/man/man2/getaudit.2
+++ b/usr/src/man/man2/getaudit.2
@@ -3,7 +3,7 @@
.\" 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.
.\" 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.
.\" 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]
-.TH GETAUDIT 2 "Apr 16, 2008"
+.TH GETAUDIT 2 "Mar 6, 2017"
.SH NAME
getaudit, setaudit, getaudit_addr, setaudit_addr \- get or set process audit
information
@@ -33,7 +33,6 @@ cc [ \fIflag\fR ... ] \fIfile\fR ... \fB-lbsm\fR \fB -lsocket \fR \fB -lnsl \fR
.fi
.SH DESCRIPTION
-.sp
.LP
The \fBgetaudit()\fR function gets the audit \fBID\fR, the preselection mask,
the terminal \fBID\fR and the audit session \fBID\fR for the current process.
@@ -57,7 +56,7 @@ the size of the network address.
.LP
The \fBsetaudit_addr()\fR function sets the audit \fBID\fR, the preselection
mask, the terminal \fBID\fR, and the audit session \fBID\fR for the current
-process. The values are taken from the variable length struture
+process. The values are taken from the variable length structure
\fBauditinfo_addr\fR. The terminal \fBID\fR contains a size field that
indicates the size of the network address.
.sp
@@ -89,13 +88,11 @@ au_asid_t ai_asid; /* audit session ID */
.in -2
.SH RETURN VALUES
-.sp
.LP
Upon successful completion, \fBgetaudit()\fR and \fBsetaudit()\fR return
\fB0\fR. Otherwise, \fB\(mi1\fR is returned and \fBerrno\fR is set to indicate
the error.
.SH ERRORS
-.sp
.LP
The \fBgetaudit()\fR and \fBsetaudit()\fR functions will fail if:
.sp
@@ -118,12 +115,10 @@ the calling process.
.RE
.SH USAGE
-.sp
.LP
The calling process must have the {\fBPRIV_SYS_AUDIT\fR} privilege asserted in
its effective set.
.SH ATTRIBUTES
-.sp
.LP
See \fBattributes\fR(5) for descriptions of the following attributes:
.sp
@@ -141,11 +136,5 @@ MT-Level MT-Safe
.TE
.SH SEE ALSO
-.sp
-.LP
-\fBbsmconv\fR(1M), \fBaudit\fR(2), \fBattributes\fR(5)
-.SH NOTES
-.sp
.LP
-The functionality described in this man page is available only if the Solaris
-Auditing has been enabled. See \fBbsmconv\fR(1M) for more information.
+\fBaudit\fR(2), \fBattributes\fR(5)