ACL_GET_PERM(3) BSD Library Functions Manual ACL_GET_PERM(3)


acl_get_perm — test for a permission in an ACL permission set


Linux Access Control Lists library (libacl, −lacl).


#include <sys/types.h>
#include <acl/libacl.h>


acl_get_perm(acl_permset_t permset_d, acl_perm_t perm);


The acl_get_perm() function tests if the permission specified by the argument perm is contained in the ACL permission set pointed to by the argument permset_d.

Any existing descriptors that refer to permset_d continue to refer to that permission set.


If successful, the acl_get_perm() function returns 1 if the permission specified by perm is contained in the ACL permission set permset_d, and 0 if the permission is not contained in the permission set. Otherwise, the value -1 is returned and the global variable errno is set to indicate the error.


If any of the following conditions occur, the acl_get_perm() function returns -1 and sets errno to the corresponding value:


The argument permset_d is not a valid descriptor for a permission set within an ACL entry.

The argument perm is not a valid acl_perm_t value.


This is a non-portable, Linux specific extension to the ACL manipulation functions defined in IEEE Std 1003.1e draft 17 (“POSIX.1e”, abandoned).


acl_add_perm(3), acl_clear_perms(3), acl_delete_perm(3), acl_get_permset(3), acl_set_permset(3), acl(5)


Written by Andreas Gruenbacher ⟨⟩ .

Linux ACL March 23, 2002 Linux ACL

More Linux Commands

XkbFreeGeomKeyAliases(3) - Free geometry key aliases........
XkbFreeGeomKeyAliases.3 - Xkb provides a number of functions to allocate and free subcomponents of a keyboard geometry. Use these functions to create or modify

gimp-2.8(1) an image manipulation and paint program.........
gimp-2.8.1 - GIMP is the GNU Image Manipulation Program. It is used to edit and manipulate images. It can load and save a variety of image formats and can be us

glTexGen(3gl) - control the generation of texture coordinate
glTexGen selects a texture-coordinate generation function or supplies coefficients for one of the functions. coord names one of the (s, t, r, q) texture coordin

gnome-options(7) - Standard Command Line Options for GNOME 2
This manual page describes the command line options, which are common to all Gnome applications. OPTIONS Help options -?, --help Show the applications help mess

options(n) - Standard options supported by widgets (ManPage)
This manual entry describes the common configuration options supported by widgets in the Tk toolkit. Every widget does not necessarily support every option (see

opts(3menu) - set and get menu options - Linux manual page
The function set_menu_opts sets all the given menus option bits (menu option bits may be logically-ORed together). The function menu_opts_on turns on the given

gmtime(3) - transform date and time to broken-down time or A
The ctime(), gmtime() and localtime() functions all take an argument of data type time_t, which represents calendar time. When interpreted as an absolute time v

snmpwalk(1) - retrieve a subtree of management values using
snmpwalk is an SNMP application that uses SNMP GETNEXT requests to query a network entity for a tree of information. An object identifier (OID) may be given on

xawtvrc(5) (File formats - Linux man page).................
xawtvrc is the config file originally used by xawtv only (thats why the name xawtvrc). These days a number of other TV applications / utilities read it too to g

glColorTableParameterfv(3gl) - set color lookup table parame
glColorTableParameter is used to specify the scale factors and bias terms applied to color components when they are loaded into a color table. target indicates

git-http-push(1) - Push objects over HTTP/DAV to another rep
Sends missing objects to remote repository, and updates the remote branch. NOTE: This command is temporarily disabled if your libcurl is older than 7.16, as the

msgcat(1) - combines several message catalogs (Man Page)....
Concatenates and merges the specified PO files. Find messages which are common to two or more of the specified PO files. By using the --more-than option, greate

We can't live, work or learn in freedom unless the software we use is free.