Print this page
9728 3secdb man pages need some tlc
@@ -1,11 +1,11 @@
'\" te
.\" Copyright (c) 2005, Sun Microsystems, Inc. All Rights Reserved.
.\" 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 GETPROFATTR 3SECDB "Mar 31, 2005"
+.TH GETPROFATTR 3SECDB "Aug 13, 2018"
.SH NAME
getprofattr, getprofnam, free_profattr, setprofattr, endprofattr, getproflist,
free_proflist \- get profile description and attributes
.SH SYNOPSIS
.LP
@@ -45,11 +45,10 @@
.nf
\fBvoid\fR \fBfree_proflist\fR(\fBchar **\fR\fIproflist\fR, \fBint\fR \fIprofcnt\fR);
.fi
.SH DESCRIPTION
-.sp
.LP
The \fBgetprofattr()\fR and \fBgetprofnam()\fR functions each return a
\fBprof_attr\fR entry. Entries can come from any of the sources specified in
the \fBnsswitch.conf\fR(4) file.
.sp
@@ -100,23 +99,21 @@
.LP
The \fBfree_proflist()\fR function frees memory allocated by the
\fBgetproflist()\fR function. The \fIprofcnt\fR argument specifies the number
of items to free from the \fIproflist\fR argument.
.SH RETURN VALUES
-.sp
.LP
The \fBgetprofattr()\fR function returns a pointer to a \fBprofattr_t\fR if it
successfully enumerates an entry; otherwise it returns \fINULL\fR, indicating
the end of the enumeration.
.sp
.LP
The \fBgetprofnam()\fR function returns a pointer to a \fBprofattr_t\fR if it
successfully locates the requested entry; otherwise it returns \fINULL\fR.
.SH USAGE
-.sp
.LP
-Individual attributes in the \fBprof_attr_t\fR structure can be referred to by
+Individual attributes in the \fBprofattr_t\fR structure can be referred to by
calling the \fBkva_match\fR(3SECDB) function.
.sp
.LP
Because the list of legal keys is likely to expand, any code must be written
to ignore unknown key-value pairs without error.
@@ -124,21 +121,19 @@
.LP
The \fBgetprofattr()\fR and \fBgetprofnam()\fR functions both allocate memory
for the pointers they return. This memory should be deallocated with the
\fBfree_profattr()\fR function.
.SH FILES
-.sp
.ne 2
.na
\fB\fB/etc/security/prof_attr\fR\fR
.ad
.RS 27n
profiles and their descriptions
.RE
.SH ATTRIBUTES
-.sp
.LP
See \fBattributes\fR(5) for descriptions of the following attributes:
.sp
.sp
@@ -150,9 +145,9 @@
_
MT-Level MT-Safe
.TE
.SH SEE ALSO
-.sp
.LP
\fBauths\fR(1), \fBprofiles\fR(1), \fBgetexecattr\fR(3SECDB),
-\fBgetauthattr\fR(3SECDB), \fBprof_attr\fR(4)
+\fBgetauthattr\fR(3SECDB), \fBkva_match\fR(3SECDB), \fBprof_attr\fR(4),
+\fBattributes\fR(5)