acl_set_tag_type()

Set the tag type of an ACL entry

Synopsis:

#include <sys/acl.h>

int acl_set_tag_type( acl_entry_t entry_d,
                      acl_tag_t tag_type );

Since:

BlackBerry 10.0.0

Arguments:

entry_d
The descriptor of the ACL entry whose type you want to set.
tag_type
The type that you want to assign to the entry; one of the following:
  • ACL_GROUP — a named group.
  • ACL_GROUP_OBJ — the owning group.
  • ACL_MASK — the maximum permissions allowed for named users, named groups, and the owning group.
  • ACL_OTHER — users whose process attributes don't match any other ACL entry; the "world".
  • ACL_USER — named users.
  • ACL_USER_OBJ — the owning user.

Library:

libc

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

Description:

The acl_set_tag_type() function sets the type of 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.
ENOTSUP
The tag_type isn't valid.

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-06-24



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

comments powered by Disqus