ACL_FROM_MODE(3) BSD Library Functions Manual ACL_FROM_MODE(3)


acl_from_mode — create an ACL from file permission bits


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


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


acl_from_mode(mode_t mode);


The acl_from_mode() function creates a minimal ACL that contains the three entries with tag types ACL_USER_OBJ, ACL_GROUP_OBJ, and ACL_OTHER, with permissions corresponding to the owner, group, and other permission bits of its argument mode.


On success, this function returns a pointer to the working storage. On error, a value of (acl_t)NULL is returned, and errno is set appropriately.


If any of the following conditions occur, the acl_from_mode() function returns a value of (acl_t)NULL and sets errno to the corresponding value:


The ACL working storage requires more memory than is allowed by the hardware or system-imposed memory management constraints.


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_equiv_mode(3), acl_get_file(3), acl(5)


Written by Andreas Gruenbacher ⟨⟩ .

Linux ACL March 23, 2002 Linux ACL

More Linux Commands

perlmacos(1) - Perl under Mac OS (Classic) - Linux man page
The port of Perl to to Mac OS was officially removed as of Perl 5.12, though the last official production release of MacPerl corresponded to Perl 5.6. While Per

glut(3) - an introduction to the OpenGL Utility Toolkit.....
The OpenGL Utility Toolkit (GLUT) is a programming interface with ANSI C and FORTRAN bindings for writing window system independent OpenGL programs. The toolkit

acosl(3) - arc cosine function (Library - Linux man page)...
The acos() function calculates the arc cosine of x; that is the value whose cosine is x. RETURN VALUE On success, these functions return the arc cosine of x in

gitremote-helpers(1) Helper programs to interact with remote
Remote helper programs are normally not used directly by end users, but they are invoked by Git when it needs to interact with remote repositories Git does not

lobase(1) - LibreOffice office suite - Linux manual page....
LibreOffice (LO for short) is a multi-platform office productivity suite. It was derived from 3.3 Beta on September 28, 2010. libreoffice is a sh

ldap_parse_result(3) - Parsing results - Linux manual page
These routines are used to extract information from a result message. They will operate on the first result message in a chain of search results (skipping past

gnutls_x509_crl_check_issuer(3) - API function (Man Page)...
This function will check if the given CRL was issued by the given issuer certificate. It will return true (1) if the given CRL was issued by the given issuer, a

ber_get_int(3) - OpenLDAP LBER simplified Basic Encoding Rul
These routines provide a subroutine interface to a simplified implementation of the Basic Encoding Rules of ASN.1. The version of BER these routines support is

netconfig(5) - network configuration data base (Man Page)...
The netconfig file defines a list of transport names, describing their semantics and protocol. In FreeBSD, this file is only used by the RPC library code. Entri

usleep(1) - sleep for the specified number of microseconds
usleep pauses for the number of usec microseconds. The default is 1 microsecond. If 0 microseconds are specified sched_yield(2) is called. BUGS The usleep progr

erb(1) Ruby Templating (Commands - Linux manual page).......
erb is a command line front-end for ERB library, which is an implementation of eRuby. ERB provides an easy to use but powerful templating system for Ruby. Using

git-send-pack(1) - Push objects over git protocol to another
Usually you would want to use git push, which is a higher-level wrapper of this command, instead. See git-push(1). Invokes git-receive-pack on a possibly remote

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