svcadm(1M)을 검색하려면 섹션에서 1M 을 선택하고, 맨 페이지 이름에 svcadm을 입력하고 검색을 누른다.
acl_trivial(3sec)
File Access Control Library Functions acl_trivial(3SEC)
NAME
acl_trivial - determine whether a file has a trivial ACL
SYNOPSIS
cc [ flag... ] file... -lsec [ library... ]
#include <sys/acl.h>
int acl_trivial(char *path);
DESCRIPTION
The acl_trivial() 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 nontrivial if it has greater than MIN_ACL_ENTRIES.
An NFSv4/ZFS-style ACL is nontrivial if it either has entries other
than owner@, group@, and everyone@, has inheritance flags set, or is
not ordered in a manner that meets POSIX access control requirements.
RETURN VALUES
Upon successful completion, acl_trivial() 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 errno is
set to indicate the error.
ERRORS
The acl_trivial() function will fail if:
EACCES A file's ACL could not be read.
ENOENT A component of path does not name an existing file or path is
an empty string.
ATTRIBUTES
See attributes(7) for descriptions of the following attributes:
tab() box; cw(2.75i) |cw(2.75i) lw(2.75i) |lw(2.75i) ATTRIBUTE TYPEAT‐
TRIBUTE VALUE _ Interface StabilityCommitted _ MT-LevelMT-Safe
SEE ALSO
acl(7), attributes(7)
Oracle Solaris 11.4 16 Jun 2011 acl_trivial(3SEC)