acl_valid(3C)

acl_valid - validate an ACL

As shipped in IRIX 6.5.19. Unchanged since IRIX 6.5.

NAME
     acl_valid - validate an ACL

SYNOPSIS
     #include <sys/acl.h>

     int acl_valid( struct acl *aclp);

DESCRIPTION
     Check that the format of an ACL is valid.

     First, aclp must be non null.  The three required entries (ACL_USER_OBJ,
     ACL_GROUP_OBJ, and ACL_OTHER) must exist exactly once in the ACL.  If the
     ACL contains any ACL_USER, ACL_GROUP, or any implementation-defined
     entries in the file group class, then one ACL_MASK entry is required. The
     ACL may contain at most one ACL_MASK entry.

     The qualifier field must be unique among all entries of the same type.

RETURN VALUES
     acl_valid returns 0 if the ACL is valid, -1 otherwise.

ERRORS
     EINVAL          ACL is not valid.

SEE ALSO
     acl(4).