Open System Services Programmer's Guide
For more information about OSS NFS file system security, see the Overview of NFS for Open
System Services and the Open System Services NFS Management and Operations Guide.
Header file
The sys/acl.h header file defines the following constants to govern the number of entries per
ACL:
NACLENTRIES
The maximum number of entries per ACL, including base entries
NACLBASE
The number of base entries
For compatibility with HP-UX, the variable name NACLVENTRIES is provided as an alias for
NACLENTRIES.
The ACL structure struct acl is also defined and includes these fields:
int a_type; /* type of entry */
uid_t a_id; /* group ID */
unsigned short a_perm; /* see <unistd.h> */
The sys/acl.h header defines the set of valid values for the a_type field in addition to the valid
values for the cmd parameter of the acl( ) function.
The sys/aclv.h header file contains the sys/acl.h header file and is provided for compatibility
with HP-UX.
Example Program For ACLs
Example 59 (page 269) provides simple examples of using the acl( ) and aclsort() APIs.
268 Managing OSS Security