summaryrefslogtreecommitdiff
path: root/usr/src
diff options
context:
space:
mode:
authorMarcel Telka <marcel.telka@nexenta.com>2014-11-24 20:57:47 +0100
committerDan McDonald <danmcd@omniti.com>2014-11-24 16:41:04 -0500
commitc7b6bf90757979f50e793af7ea98d3120668214f (patch)
tree10ce81781ba3d42c93437430d862a4d48a8bbc34 /usr/src
parent229fca2669c724519f75f27dbd16b96f35b82589 (diff)
downloadillumos-gate-c7b6bf90757979f50e793af7ea98d3120668214f.tar.gz
4199 acl_trivial(3sec): The definition of trivial ACL is incorrect
Reviewed by: Richard Lowe <richlowe@richlowe.net> Reviewed by: Gordon Ross <gordon.ross@nexenta.com> Reviewed by: Yuri Pankov <yuri.pankov@nexenta.com> Approved by: Dan McDonald <danmcd@omniti.com>
Diffstat (limited to 'usr/src')
-rw-r--r--usr/src/man/man3sec/acl_trivial.3sec17
-rw-r--r--usr/src/man/man5/acl.57
2 files changed, 8 insertions, 16 deletions
diff --git a/usr/src/man/man3sec/acl_trivial.3sec b/usr/src/man/man3sec/acl_trivial.3sec
index 82513c4091..76027b79cc 100644
--- a/usr/src/man/man3sec/acl_trivial.3sec
+++ b/usr/src/man/man3sec/acl_trivial.3sec
@@ -1,9 +1,10 @@
'\" te
+.\" Copyright 2014 Nexenta Systems, Inc. All Rights Reserved.
.\" 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 ACL_TRIVIAL 3SEC "Oct 6, 2005"
+.TH ACL_TRIVIAL 3SEC "Nov 24, 2014"
.SH NAME
acl_trivial \- determine whether a file has a trivial ACL
.SH SYNOPSIS
@@ -16,23 +17,21 @@ cc [ \fIflag\fR\&.\|.\|. ] \fIfile\fR\&.\|.\|. \fB-lsec\fR [ \fIlibrary\fR\&.\|.
.fi
.SH DESCRIPTION
-.sp
.LP
The \fBacl_trivial()\fR function is used to determine whether a file has a
trivial ACL. Whether an ACL is trivial depends on the type of the ACL. A POSIX
-draft ACL is trivial if it has greater than \fBMIN_ACL_ENTRIES\fR. An
-NFSv4/ZFS-style ACL is trivial if it either has entries other than
-\fBowner@\fR, \fBgroup@\fR, and \fBeveryone@\fR, has inheritance flags set, or
-is not ordered in a manner that meets POSIX access control requirements.
+draft ACL is trivial if it does not have more than \fBMIN_ACL_ENTRIES\fR
+entries. An NFSv4/ZFS-style ACL is trivial if it does not have entries other
+than \fBowner@\fR, \fBgroup@\fR, and \fBeveryone@\fR, does not have inheritance
+flags set, and is ordered in a manner that meets POSIX access control
+requirements.
.SH RETURN VALUES
-.sp
.LP
Upon successful completion, \fBacl_trivial()\fR returns 0 if the file's ACL is
trivial and 1 if the file's ACL is not trivial. If it could not be determined
whether a file's ACL is trivial, -1 is returned and \fBerrno\fR is set to
indicate the error.
.SH ERRORS
-.sp
.LP
The \fBacl_trivial()\fR function will fail if:
.sp
@@ -55,7 +54,6 @@ empty string.
.RE
.SH ATTRIBUTES
-.sp
.LP
See \fBattributes\fR(5) for descriptions of the following attributes:
.sp
@@ -73,6 +71,5 @@ MT-Level MT-Safe
.TE
.SH SEE ALSO
-.sp
.LP
\fBacl\fR(5), \fBattributes\fR(5)
diff --git a/usr/src/man/man5/acl.5 b/usr/src/man/man5/acl.5
index ce93f464e3..391fa338da 100644
--- a/usr/src/man/man5/acl.5
+++ b/usr/src/man/man5/acl.5
@@ -713,12 +713,7 @@ int acl_trivial(const char *path);
.sp
.LP
The \fBacl_trivial()\fR function is used to determine whether a file has a
-trivial ACL. The trivialness of a file's ACL depends on the type of ACL it is.
-For POSIX-draft ACLs, it implies the ACL has greater than
-\fBMIN_ACL_ENTRIES\fR. For NFSv4/ZFS style ACLs, it implies that the ACL has
-entries other than \fBowner@\fR, \fBgroup@\fR and \fBeveryone@\fR, inheritance
-flags are set, or the ACL is not ordered in a manner that meets POSIX access
-control requirements.
+trivial ACL.
.SS "Removing all \fBACL\fRs from a file"
.in +2
.nf