Home
last modified time | relevance | path

Searched defs:rights (Results 1 – 25 of 123) sorted by relevance

12345

/freebsd/contrib/capsicum-test/
H A Dcapsicum-rights.h39 #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 Dcapsicum.h21 #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 Dfcntl.cc23 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 Dcapability-fd.cc154 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 Dfexecve.cc95 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 Dioctl.cc53 cap_rights_t rights; in TEST() local
75 cap_rights_t rights; in TEST() local
/freebsd/sys/kern/
H A Dsubr_capability.c174 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 Dsys_capability.c160 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 Dvfs_acl.c432 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 Dcapsicum_helpers.h64 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 Dfileargs_test.c217 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 Dsctp_syscalls.c145 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 Dcap_fcntls_limit.c157 cap_rights_t rights; fcntl_tests_1() local
209 cap_rights_t rights; fcntl_tests_2() local
H A Dcap_ioctls_limit.c131 cap_rights_t rights; ioctl_tests_1() local
177 cap_rights_t rights; ioctl_tests_2() local
/freebsd/tests/sys/vfs/
H A Dlookup_cap_dotdot.c117 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 Dcap_test_capabilities.c111 try_file_ops(int filefd, int dirfd, cap_rights_t rights) in try_file_ops()
414 #define TRY(rights) \ argument
H A Dcap_test.h110 #define CHECK_RIGHTS(rights, max) do { \ argument
117 #define MAKE_CAPABILITY(to, from, rights) do { \ argument
H A Dcap_test_relative.c56 cap_rights_t rights; in test_relative() local
/freebsd/sys/sys/
H A Dcapsicum.h293 #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 Dbpf.c144 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 Dbindat_connectat.c180 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 Dtdfx_linux.c47 cap_rights_t rights; in linux_ioctl_tdfx() local
/freebsd/sys/dev/aac/
H A Daac_linux.c78 cap_rights_t rights; in aac_linux_ioctl() local
/freebsd/sys/dev/aacraid/
H A Daacraid_linux.c81 cap_rights_t rights; in aacraid_linux_ioctl() local
/freebsd/sys/amd64/sgx/
H A Dsgx_linux.c57 cap_rights_t rights; sgx_linux_ioctl() local

12345