|
NAMEacl_valid , acl_valid_fd_np ,
acl_valid_file_np ,
acl_valid_link_np —
validate an ACL
LIBRARYStandard C Library (libc, -lc)SYNOPSIS#include <sys/types.h>
#include <sys/acl.h>
int
int
int
int
DESCRIPTIONThese functions check that the ACL referred to by the argument acl is valid. The POSIX.1e routine,acl_valid (), checks this validity only with POSIX.1e
ACL semantics, and irrespective of the context in which the ACL is to be used.
The non-portable forms, acl_valid_fd_np (),
acl_valid_file_np (), and
acl_valid_link_np () allow an ACL to be checked in the
context of a specific acl type, type, and file system
object. In environments where additional ACL types are supported than just
POSIX.1e, this makes more sense. Whereas
acl_valid_file_np () will follow the symlink if the
specified path is to a symlink, acl_valid_link_np ()
will not.
For POSIX.1e semantics, the checks include:
The POSIX.1e IMPLEMENTATION NOTESFreeBSD's support for POSIX.1e interfaces and features is still under development at this time.RETURN VALUESUpon successful completion, the value 0 is returned; otherwise the value -1 is returned and the global variable errno is set to indicate the error.ERRORSIf any of the following conditions occur, these functions shall return -1 and set errno to the corresponding value:
SEE ALSOacl(3), acl_get(3), acl_init(3), acl_set(3), posix1e(3)STANDARDSPOSIX.1e is described in IEEE POSIX.1e draft 17. Discussion of the draft continues on the cross-platform POSIX.1e implementation mailing list. To join this list, see the FreeBSD POSIX.1e implementation page for more information.HISTORYPOSIX.1e support was introduced in FreeBSD 4.0, and development continues.AUTHORSRobert N M Watson
Visit the GSP FreeBSD Man Page Interface. |