|
NAMEcap_fcntls_limit , cap_fcntls_get
—
manage allowed fcntl commands
LIBRARYStandard C Library (libc, -lc)SYNOPSIS#include <sys/capsicum.h>
int
int
DESCRIPTIONIf a file descriptor is granted theCAP_FCNTL capability
right, the list of allowed
fcntl(2)
commands can be selectively reduced (but never expanded) with the
cap_fcntls_limit () system call.
A bitmask of allowed fcntls commands for a given file descriptor
can be obtained with the FLAGSThe following flags may be specified in the fcntlrights argument or returned in the fcntlrightsp argument:
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.ERRORScap_fcntls_limit () succeeds unless:
SEE ALSOcap_ioctls_limit(2), cap_rights_limit(2), fcntl(2)HISTORYThecap_fcntls_get () and
cap_fcntls_limit () system calls first appeared in
FreeBSD 8.3. Support for capabilities and capabilities
mode was developed as part of the TrustedBSD Project.
AUTHORSThis function was created by Pawel Jakub Dawidek <pawel@dawidek.net> under sponsorship of the FreeBSD Foundation.
Visit the GSP FreeBSD Man Page Interface. |