acl_from_mode.3




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

NAME

acl_from_mode — create an ACL from file permission bits

LIBRARY

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

SYNOPSIS

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

acl_t

acl_from_mode(mode_t mode);

DESCRIPTION

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.

RETURN VALUE

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.

ERRORS

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:

[ENOMEM]

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

STANDARDS

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

SEE ALSO

acl_equiv_mode(3), acl_get_file(3), acl(5)

AUTHOR

Written by Andreas Gruenbacher ⟨ a.gruenbacher@bestbits.at⟩ .

Linux ACL March 23, 2002 Linux ACL



More Linux Commands

manpages/perlmacos.1.html
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

manpages/glut.3.html
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

manpages/acosl.3.html
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

manpages/gitremote-helpers.1.html
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

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

manpages/ldap_parse_result.3.html
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

manpages/gnutls_x509_crl_check_issuer.3.html
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

manpages/ber_get_int.3.html
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

manpages/netconfig.5.html
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

manpages/usleep.1.html
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

manpages/erb.1.html
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

manpages/git-send-pack.1.html
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.