Open System Services System Calls Reference Manual (G06.29+, H06.08+, J06.03+)

acl(2) OSS System Calls Reference Manual
NAME
acl - Sets access control list (ACL) information for a file
LIBRARY
G-series native Guardian processes: system library
G-series native OSS processes: system library
H-series and J-series native Guardian processes: implicit libraries
H-series and J-series OSS processes: implicit libraries
SYNOPSIS
#include <sys/types.h>
#include <sys/acl.h>
int acl(
char *pathp, int cmd, int nentries,
struct acl *aclbufp);
PARAMETERS
pathp Points to the pathname of the file.
nentries Specifies the number of ACL entries pointed to by the aclbufp parameter.
aclbufp Points to the first element of a structure of type acl. The acl structure is defined
in the acl.h header file as:
struct acl {
int a_type; /* entry type */
uid_t a_id; /* user or group ID */
unsigned short a_perm; /* entry permissions */
};
The values of the a_type field are:
USER_OBJ Permissions for the owner of the object
USER Permissions for additional specified users
GROUP_OBJ Permissions for members of the owning group of the object
GROUP Permissions for members of additional specified groups
CLASS_OBJ Maximum permissions granted to the file group class
OTHER_OBJ Permissions for other users
DEF_USER_OBJ
Default permissions for the object owner
DEF_USER Default permissions for additional specified users
DEF_GROUP_OBJ
Default permissions for members of the owning group of the
object
DEF_GROUP Default permissions for members of additional specified groups
DEF_CLASS_OBJ
Default maximum permissions for the owning group, additional
specified users, and additional specified groups.
DEF_OTHER_OBJ
Default permissions for other users
110 Hewlett-Packard Company 527186-023