MyWebUniversity.com Home Page
 



OpenSolaris man pages main menu


File Access Control Library Functions           acltrivial(3SEC)



NAME
     acltrivial - determine whether a file has a trivial ACL

SYNOPSIS
     cc [ flag... ] file... -lsec [ library... ]
     #include 

     int acltrivial(char *path);


DESCRIPTION
     The acltrivial() 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  MINACLENTRIES.  An  NFSv4/ZFS-style  ACL is
     trivial 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, acltrivial() 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.

ERORS
     The acltrivial() function will fail if:

     EACES    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.


ATRIBUTES
     See attributes(5) for descriptions of the  following  attri-
     butes:
















SunOS 5.11           Last change: 6 Oct 2005                    1






File Access Control Library Functions           acltrivial(3SEC)



     
           ATRIBUTE TYPE               ATRIBUTE VALUE       
    
     Interface Stability          Evolving                    
    
     MT-Level                     MT-Safe                     
    


SEE ALSO
     acl(5), attributes(5)












































SunOS 5.11           Last change: 6 Oct 2005                    2



OpenSolaris man pages main menu

Contact us      |       About us      |       Term of use      |       Copyright © 2000-2010 MyWebUniversity.com ™