acl_set_permset()

Set the permissions set in an ACL entry

Synopsis:

#include <sys/acl.h>

int acl_set_permset( acl_entry_t entry_d,
                     acl_permset_t permset_p );

Since:

BlackBerry 10.0.0

Arguments:

entry_d
A descriptor of the entry that you want to set the permissions from.
permset_p
The permissions set that you want to store in the entry.

Library:

libc

Use the -l c option to qcc to link against this library. This library is usually included automatically.

Description:

The acl_set_permset() function stores the given permissions set in an ACL entry.

Returns:

0, or -1 if an error occurred ( errno is set).

Errors:

EINVAL
The entry_d argument isn't a valid descriptor for an ACL entry, the permset_p isn't a valid descriptor for a permission set within an ACL entry, or the permissions include invalid values.

Classification:

QNX Neutrino

This function is based on the withdrawn POSIX draft P1003.1e.

Safety:  
Cancellation point No
Interrupt handler No
Signal handler No
Thread Yes

Last modified: 2014-11-17



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus