<html>
<head>
<meta name="Content-Style" content="text/css">
</head>
<body>
<a href="#NAME">NAME</a><br>
<a href="#SYNOPSIS">SYNOPSIS</a><br>
<a href="##include <sys/acl.h>">#include <sys/acl.h></a><br>
<a href="#int acl_valid( struct acl *aclp);">int acl_valid( struct acl *aclp);</a><br>
<a href="#DESCRIPTION">DESCRIPTION</a><br>
<a href="#RETURN VALUES">RETURN VALUES</a><br>
<a href="#ERRORS">ERRORS</a><br>
<!-- Creator : groff version 1.16.1 -->
<!-- CreationDate: Wed Jan 24 01:42:49 2001
-->
<!-- Total number of pages: 1 -->
<!-- Page: 1 -->
<!-- left margin: 220 -->
<!-- right margin: 750 -->
<a name="NAME"></a><h2>NAME</h2><p style="margin-left: 18%"><font size=3>acl_valid - validate an ACL</font></p>
<a name="SYNOPSIS"></a><h2>SYNOPSIS</h2><a name="#include <sys/acl.h>"></a><h2>#include <sys/acl.h></h2><a name="int acl_valid( struct acl *aclp);"></a><h2>int acl_valid( struct acl *aclp);</h2><a name="DESCRIPTION"></a><h2>DESCRIPTION</h2><p style="margin-left: 18%"><font size=3>Check that the format of an ACL is valid.</font></p>
<p style="margin-left: 18%"><font size=3>First,</font> <font size=3><I>aclp</I></font> <font size=3>must be non null. The three required entries (ACL_USER_OBJ, ACL_GROUP_OBJ, and ACL_OTHER_OBJ) 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.</font></p>
<p style="margin-left: 18%"><font size=3>The qualifier field must be unique among all entries of the same type.</font></p>
<a name="RETURN VALUES"></a><h2>RETURN VALUES</h2><p style="margin-left: 18%"><font size=3><I>acl_valid</I></font> <font size=3>returns 0 if the ACL is valid, ­1 otherwise.</font></p>
<a name="ERRORS"></a><h2>ERRORS</h2><p style="margin-left: 18%"><font size=3>EINVAL ACL is not valid.</font><br>
</p>
</body>
</html>