Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

acl_set_permset(3) [osf1 man page]

acl_set_permset(3)					     Library Functions Manual						acl_set_permset(3)

acl_set_permset - Sets permissions in a given ACL entry LIBRARY
Security Library (libpacl.a) SYNOPSIS
#include <sys/acl.h> int acl_set_permset( acl_entry_t entry_d; acl_permset_t permset_d); PARAMETERS
Specifies the descriptor of the working storage internal representation of an ACL entry. Points to a working storage internal representa- tion of file permission bits. DESCRIPTION
NOTE: This function is based on Draft 13 of the POSIX P1003.6 standard. Given a pointer to an ACL entry, the acl_set_permset() function sets the permissions. Any permissions in the ACL entry before the call to acl_set_permset() are replaced with the new set of permissions. RETURN VALUES
Upon successful completion, the acl_set_permset() function returns a value of 0 (zero). Otherwise, a value of -1 is returned, and errno is set to indicate the error. ERRORS
If the following conditions occur, the acl_set_permset() function sets errno to the corresponding value: The entry_d parameter does not refer to a valid ACL entry. The permset_d parameter does not contain valid file permission bits. RELATED INFORMATION
acl_add_perm(3), acl_get_permset(3), acl_get_entry(3), acl_delete_perm(3), acl_clear_perm(3) Security delim off acl_set_permset(3)

Check Out this Related Man Page

ACL_SET_PERMSET(3)					   BSD Library Functions Manual 					ACL_SET_PERMSET(3)

acl_set_permset -- set the permissions of an ACL entry LIBRARY
Standard C Library (libc, -lc) SYNOPSIS
#include <sys/types.h> #include <sys/acl.h> int acl_set_permset(acl_entry_t entry_d, acl_permset_t permset_d); DESCRIPTION
The acl_set_permset() function is a POSIX.1e call that sets the permissions of ACL entry entry_d with the permissions contained in permset_d. RETURN VALUES
The acl_set_permset() function returns the value 0 if successful; otherwise the value -1 is returned and the global variable errno is set to indicate the error. ERRORS
The acl_set_permset() function fails if: [EINVAL] Argument entry_d is not a valid descriptor for an ACL entry. SEE ALSO
acl(3), acl_add_perm(3), acl_clear_perms(3), acl_delete_perm(3), acl_get_permset(3), posix1e(3) STANDARDS
POSIX.1e is described in IEEE POSIX.1e draft 17. AUTHORS
Michael Smith Chris D. Faulhaber BSD
March 10, 2001 BSD
Man Page