|
rpm-build |
0a0c83 |
The Posix ACL user library
|
|
rpm-build |
0a0c83 |
==========================
|
|
rpm-build |
0a0c83 |
|
|
rpm-build |
0a0c83 |
The Posix ACL manipulation functions defined in Posix 1003.1e DS17 are
|
|
rpm-build |
0a0c83 |
declared in <sys/acl.h>; you need to link against libacl.a for these
|
|
rpm-build |
0a0c83 |
functions to be included in your binaries.
|
|
rpm-build |
0a0c83 |
|
|
rpm-build |
0a0c83 |
There is an additional header file <acl/libacl.h> that gives you
|
|
rpm-build |
0a0c83 |
access to some extensions that are also contained in the same library.
|
|
rpm-build |
0a0c83 |
The functions declared there are:
|
|
rpm-build |
0a0c83 |
|
|
rpm-build |
0a0c83 |
acl_to_any_text()
|
|
rpm-build |
0a0c83 |
|
|
rpm-build |
0a0c83 |
Similar to acl_to_text(), but also allows you to specify:
|
|
rpm-build |
0a0c83 |
- a prefix string that is printed before each ACL entry.
|
|
rpm-build |
0a0c83 |
- a seperator character that is printed between two ACL entries.
|
|
rpm-build |
0a0c83 |
- a set of options (TEXT_* constants).
|
|
rpm-build |
0a0c83 |
|
|
rpm-build |
0a0c83 |
This function returns the length in characters of the text returned
|
|
rpm-build |
0a0c83 |
in the len_p parameter, unless len_p is NULL. The returned string
|
|
rpm-build |
0a0c83 |
must be freed using the acl_free() function.
|
|
rpm-build |
0a0c83 |
|
|
rpm-build |
0a0c83 |
Returns NULL and sets errno accordingly on error.
|
|
rpm-build |
0a0c83 |
|
|
rpm-build |
0a0c83 |
acl_entry_to_any_str()
|
|
rpm-build |
0a0c83 |
|
|
rpm-build |
0a0c83 |
Converts a single ACL entry to text, filling a buffer. It takes as
|
|
rpm-build |
0a0c83 |
additional parameter the ACL mask entry (which is used to computer
|
|
rpm-build |
0a0c83 |
the effective permissions if specified). The prefix and options are
|
|
rpm-build |
0a0c83 |
the same as for acl_to_any_text().
|
|
rpm-build |
0a0c83 |
|
|
rpm-build |
0a0c83 |
Returns -1 and sets errno accordingly on error.
|
|
rpm-build |
0a0c83 |
|
|
rpm-build |
0a0c83 |
acl_cmp()
|
|
rpm-build |
0a0c83 |
|
|
rpm-build |
0a0c83 |
Returns 0 if both ACLs are equal, and 1 otherwise.
|
|
rpm-build |
0a0c83 |
|
|
rpm-build |
0a0c83 |
Returns -1 and sets errno accordingly on error.
|
|
rpm-build |
0a0c83 |
|
|
rpm-build |
0a0c83 |
acl_check()
|
|
rpm-build |
0a0c83 |
|
|
rpm-build |
0a0c83 |
Checks an ACL for validity, similar to acl_valid. Returns the entry
|
|
rpm-build |
0a0c83 |
at which an error occurred in last (unless last is NULL), and
|
|
rpm-build |
0a0c83 |
returns a positive error code (ACL_*_ERROR) if the ACL is invalid; 0
|
|
rpm-build |
0a0c83 |
on success.
|
|
rpm-build |
0a0c83 |
|
|
rpm-build |
0a0c83 |
Returns -1 and sets errno accordingly on error.
|
|
rpm-build |
0a0c83 |
|
|
rpm-build |
0a0c83 |
acl_equiv_mode()
|
|
rpm-build |
0a0c83 |
|
|
rpm-build |
0a0c83 |
Checks if an ACL is a basic ACL. If so, returns 0 and sets mode_p to
|
|
rpm-build |
0a0c83 |
the file mode permission bits that correspond to the ACL. Returns 1
|
|
rpm-build |
0a0c83 |
otherwise.
|
|
rpm-build |
0a0c83 |
|
|
rpm-build |
0a0c83 |
Returns -1 and sets errno accordingly on error.
|
|
rpm-build |
0a0c83 |
|
|
rpm-build |
0a0c83 |
acl_entries()
|
|
rpm-build |
0a0c83 |
|
|
rpm-build |
0a0c83 |
Returns the number of entries in an ACL.
|
|
rpm-build |
0a0c83 |
|
|
rpm-build |
0a0c83 |
Returns -1 and sets errno accordingly on error.
|
|
rpm-build |
0a0c83 |
|
|
rpm-build |
0a0c83 |
acl_error()
|
|
rpm-build |
0a0c83 |
|
|
rpm-build |
0a0c83 |
Returns a textual message describing the error code returned by
|
|
rpm-build |
0a0c83 |
acl_check().
|
|
rpm-build |
0a0c83 |
|
|
rpm-build |
0a0c83 |
acl_get_perm()
|
|
rpm-build |
0a0c83 |
|
|
rpm-build |
0a0c83 |
Check if a permission is set in a permission set (acl_permset_t).
|
|
rpm-build |
0a0c83 |
|
|
rpm-build |
0a0c83 |
Returns 1 if the permission is set, or 0 if it is not set.
|
|
rpm-build |
0a0c83 |
Returns -1 and sets errno if an error occurs.
|
|
rpm-build |
0a0c83 |
|
|
rpm-build |
0a0c83 |
|
|
rpm-build |
0a0c83 |
Andreas
|
|
rpm-build |
0a0c83 |
|