Main index | Section 2 | Options |
#include <sys/capsicum.h>
A bitmask of allowed fcntls commands for a given file descriptor can be obtained with the cap_fcntls_get() system call.
CAP_FCNTL_GETFL | Permit F_GETFL command. |
CAP_FCNTL_SETFL | Permit F_SETFL command. |
CAP_FCNTL_GETOWN | |
Permit F_GETOWN command. | |
CAP_FCNTL_SETOWN | |
Permit F_SETOWN command. | |
[EBADF] | |
The fd argument is not a valid descriptor. | |
[EINVAL] | |
An invalid flag has been passed in fcntlrights. | |
[ENOTCAPABLE] | |
fcntlrights would expand the list of allowed fcntl(2) commands. | |
cap_fcntls_get() succeeds unless:
[EBADF] | |
The fd argument is not a valid descriptor. | |
[EFAULT] | |
The fcntlrightsp argument points at an invalid address. | |
CAP_FCNTLS_LIMIT (2) | May 5, 2020 |
Main index | Section 2 | Options |
Please direct any comments about this manual page service to Ben Bullock. Privacy policy.
“ | I think Unix and snowflakes are the only two classes of objects in the universe in which no two instances ever match exactly. | ” |
— Noel Chiappa |