ACL_VALID(3C)ACL_VALID(3C)NAMEacl_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 VALUESacl_valid returns 0 if the ACL is valid, -1 otherwise.
ERRORS
EINVAL ACL is not valid.
SEE ALSOacl(4).
Page 1