/freebsd/contrib/capsicum-test/ |
H A D | capsicum-rights.h | 39 #define cap_rights_init(rights, ...) _cap_rights_init((rights), __VA_ARGS__, 0ULL) argument 40 #define cap_rights_set(rights, ...) _cap_rights_set((rights), __VA_ARGS__, 0ULL) argument 41 #define cap_rights_clear(rights, ...) _cap_rights_clear((rights), __VA_ARGS__, 0ULL) argument 42 #define cap_rights_is_set(rights, ...) _cap_rights_is_set((rights), __VA_ARGS__, 0ULL) argument 44 inline cap_rights_t* _cap_rights_init(cap_rights_t *rights, ...) { in _cap_rights_init() 58 inline cap_rights_t* _cap_rights_set(cap_rights_t *rights, ...) { in _cap_rights_set() 71 inline cap_rights_t* _cap_rights_clear(cap_rights_t *rights, ...) { in _cap_rights_clear() 84 inline bool _cap_rights_is_set(const cap_rights_t *rights, ...) { in _cap_rights_is_set() 98 inline bool _cap_rights_is_valid(const cap_rights_t *rights) { in _cap_rights_is_valid()
|
H A D | capsicum.h | 21 #define CAP_SET_ALL(rights) CAP_ALL(rights) argument 23 #define CAP_SET_ALL(rights) *(rights) = CAP_MASK_VALID argument 29 #define CAP_SET_NONE(rights) CAP_NONE(rights) argument 31 #define CAP_SET_NONE(rights) *(rights) = 0 argument 122 inline int cap_rights_get(int fd, cap_rights_t *rights) { in cap_rights_get() 130 inline int cap_rights_limit(int fd, const cap_rights_t *rights) { in cap_rights_limit() 143 static inline void cap_rights_describe(const cap_rights_t *rights, char *buffer) { in cap_rights_describe() 164 static inline void cap_rights_describe(const cap_rights_t *rights, char *buffer) { in cap_rights_describe()
|
H A D | fcntl.cc | 23 cap_rights_t rights; in FORK_TEST() local 132 cap_rights_t rights; in CheckFcntl() local 174 cap_rights_t rights; in TEST() local 220 cap_rights_t rights; in TEST() local 273 cap_rights_t rights; in TEST() local 293 cap_rights_t rights; in TEST() local 326 cap_rights_t rights; in TEST() local 367 cap_rights_t rights; in TEST() local
|
H A D | capability-fd.cc | 154 cap_rights_t rights; in ShowCapRights() local 216 cap_rights_t rights; in FORK_TEST() local 381 cap_rights_t rights; variable 399 #define CHECK_RIGHT_RESULT(result, rights, ...) do { \ argument 430 #define CHECK_RIGHT_MMAP_RESULT(result, rights, ...) do { \ argument 495 static void TryFileOps(int fd, cap_rights_t rights) { in TryFileOps() 678 static void TryDirOps(int dirfd, cap_rights_t rights) { in TryDirOps() 1037 cap_rights_t rights; variable 1294 cap_rights_t rights; in TEST() local 1317 cap_rights_t rights; in TEST() local [all …]
|
H A D | fexecve.cc | 95 cap_rights_t rights; in FORK_TEST_F() local 106 cap_rights_t rights; in FORK_TEST_F() local 158 cap_rights_t rights; in FORK_TEST_F() local
|
H A D | ioctl.cc | 53 cap_rights_t rights; in TEST() local 75 cap_rights_t rights; in TEST() local
|
/freebsd/sys/kern/ |
H A D | subr_capability.c | 174 cap_rights_vset(cap_rights_t *rights, va_list ap) in cap_rights_vset() 199 cap_rights_vclear(cap_rights_t *rights, va_list ap) in cap_rights_vclear() 224 cap_rights_is_vset(const cap_rights_t *rights, va_list ap) in cap_rights_is_vset() 251 __cap_rights_init(int version, cap_rights_t *rights, ...) in __cap_rights_init() 269 __cap_rights_set(cap_rights_t *rights, ...) in __cap_rights_set() 283 __cap_rights_clear(cap_rights_t *rights, ...) in __cap_rights_clear() 297 __cap_rights_is_set(const cap_rights_t *rights, ...) in __cap_rights_is_set() 312 cap_rights_is_empty(const cap_rights_t *rights) in cap_rights_is_empty() 331 cap_rights_is_valid(const cap_rights_t *rights) in cap_rights_is_valid()
|
H A D | sys_capability.c | 160 const cap_rights_t rights[] = { *needp, *havep }; in _cap_check() local 183 const cap_rights_t rights[] = { *needp, *havep }; in cap_check_failed_notcapable() local 230 kern_cap_rights_limit(struct thread *td, int fd, cap_rights_t *rights) in kern_cap_rights_limit() 269 cap_rights_t rights; in sys_cap_rights_limit() local 313 cap_rights_t rights; in sys___cap_rights_get() local 617 uint32_t rights; in sys_cap_fcntls_get() local
|
H A D | vfs_acl.c | 432 cap_rights_t rights; in sys___acl_get_fd() local 452 cap_rights_t rights; in sys___acl_set_fd() local 509 cap_rights_t rights; in sys___acl_delete_fd() local 566 cap_rights_t rights; in sys___acl_aclcheck_fd() local
|
/freebsd/lib/libcapsicum/ |
H A D | capsicum_helpers.h | 64 caph_stream_rights(cap_rights_t *rights, int flags) in caph_stream_rights() argument 81 cap_rights_t rights; in caph_limit_stream() local 158 caph_rights_limit(int fd,const cap_rights_t * rights) caph_rights_limit() argument [all...] |
/freebsd/lib/libcasper/services/cap_fileargs/tests/ |
H A D | fileargs_test.c | 217 test_file_cap(int fd, cap_rights_t *rights) in test_file_cap() 285 cap_rights_t rights, norights; in ATF_TC_BODY() local 332 cap_rights_t rights, norights; in ATF_TC_BODY() local 379 cap_rights_t rights, norights; in ATF_TC_BODY() local 424 cap_rights_t rights; in ATF_TC_BODY() local 459 cap_rights_t rights, norights; in ATF_TC_BODY() local 509 cap_rights_t rights, norights; in ATF_TC_BODY() local 559 cap_rights_t rights; in ATF_TC_BODY() local 666 cap_rights_t rights, norights; in ATF_TC_BODY() local 714 cap_rights_t rights, norights; in ATF_TC_BODY() local
|
/freebsd/sys/netinet/ |
H A D | sctp_syscalls.c | 145 cap_rights_t rights; in sys_sctp_peeloff() local 219 cap_rights_t rights; in sys_sctp_generic_sendmsg() local 319 cap_rights_t rights; in sys_sctp_generic_sendmsg_iov() local 434 cap_rights_t rights; in sys_sctp_generic_recvmsg() local
|
/freebsd/tools/regression/capsicum/syscalls/ |
H A D | cap_fcntls_limit.c | 157 cap_rights_t rights; fcntl_tests_1() local 209 cap_rights_t rights; fcntl_tests_2() local
|
H A D | cap_ioctls_limit.c | 131 cap_rights_t rights; ioctl_tests_1() local 177 cap_rights_t rights; ioctl_tests_2() local
|
/freebsd/tests/sys/vfs/ |
H A D | lookup_cap_dotdot.c | 117 cap_rights_t rights; in ATF_TC_BODY() local 140 cap_rights_t rights; in ATF_TC_BODY() local 218 cap_rights_t rights; in ATF_TC_BODY() local
|
/freebsd/tools/regression/security/cap_test/ |
H A D | cap_test_capabilities.c | 111 try_file_ops(int filefd, int dirfd, cap_rights_t rights) in try_file_ops() 414 #define TRY(rights) \ argument
|
H A D | cap_test.h | 110 #define CHECK_RIGHTS(rights, max) do { \ argument 117 #define MAKE_CAPABILITY(to, from, rights) do { \ argument
|
H A D | cap_test_relative.c | 56 cap_rights_t rights; in test_relative() local
|
/freebsd/sys/sys/ |
H A D | capsicum.h | 293 #define CAP_ALL(rights) do { \ argument 299 #define CAP_NONE(rights) do { \ argument 306 #define CAPVER(rights) CAPRVER((rights)->cr_rights[0]) argument 307 #define CAPARSIZE(rights) (CAPVER(rights) + 2) argument
|
/freebsd/sbin/dhclient/ |
H A D | bpf.c | 144 cap_rights_t rights; in if_register_send() local 257 cap_rights_t rights; in if_register_receive() local
|
/freebsd/tests/sys/capsicum/ |
H A D | bindat_connectat.c | 180 cap_rights_t *rights, cap_rights_t *sub_rights) in check_3() 198 cap_rights_t rights, sub_rights; in ATF_TC_BODY() local
|
/freebsd/sys/dev/tdfx/ |
H A D | tdfx_linux.c | 47 cap_rights_t rights; in linux_ioctl_tdfx() local
|
/freebsd/sys/dev/aac/ |
H A D | aac_linux.c | 78 cap_rights_t rights; in aac_linux_ioctl() local
|
/freebsd/sys/dev/aacraid/ |
H A D | aacraid_linux.c | 81 cap_rights_t rights; in aacraid_linux_ioctl() local
|
/freebsd/sys/amd64/sgx/ |
H A D | sgx_linux.c | 57 cap_rights_t rights; sgx_linux_ioctl() local
|