acl_set - set an XFS access or default ACL
|
struct acl *dacl); |
The acl_set system call allows a user to store an access or default ACL for a file/directory given either a file descriptor or path name. The path argument and fd argument provide alternate ways to specify the same file. The acl argument refers to the access ACL and should be preallocated. The dacl argument refers to the default ACL and should be preallocated.
This system call is called from the POSIX ACL functions of
acl_set_fd (3) and
acl_set_file (3). Therefore, direct calling of this system call is not necessary or suggested.
This ACL system call can be considered a temporary prototype solution and may be altered for a more generic ACL solution in the future.
acl_set will return 0 on success, and a negated error code on any failure.
|
Invalid arguments such as acl and dacl both being NULL, or fd and path either both NULL or both not NULL. |
acl(5),
acl_set_fd(3), acl_set_file(3),
chacl(1).