/external/libcap/libcap/include/sys/ |
D | capability.h | 47 typedef int cap_value_t; typedef 54 extern cap_value_t cap_max_bits(void); 113 extern int cap_get_flag(cap_t, cap_value_t, cap_flag_t, cap_flag_value_t *); 114 extern int cap_set_flag(cap_t, cap_flag_t, int, const cap_value_t *, 120 cap_value_t); 121 extern int cap_iab_set_vector(cap_iab_t, cap_iab_vector_t, cap_value_t, 138 extern int cap_get_bound(cap_value_t); 139 extern int cap_drop_bound(cap_value_t); 142 extern int cap_get_ambient(cap_value_t); 143 extern int cap_set_ambient(cap_value_t, cap_flag_value_t); [all …]
|
/external/libcap/libcap/ |
D | cap_test.c | 3 static cap_value_t top; 5 static int cf(cap_value_t x) { in cf() 10 static cap_value_t vs[] = { in test_cap_bits() 14 cap_value_t i; in test_cap_bits() 16 cap_value_t ans; in test_cap_bits()
|
D | cap_proc.c | 268 int cap_get_bound(cap_value_t cap) in cap_get_bound() 280 static int _cap_drop_bound(struct syscaller_s *sc, cap_value_t cap) in _cap_drop_bound() 294 int cap_drop_bound(cap_value_t cap) { in cap_drop_bound() 300 int cap_get_ambient(cap_value_t cap) in cap_get_ambient() 313 cap_value_t cap, cap_flag_value_t set) in _cap_set_ambient() 339 int cap_set_ambient(cap_value_t cap, cap_flag_value_t set) in cap_set_ambient() 347 cap_value_t c; in _cap_reset_ambient() 419 static cap_value_t raise_cap_setpcap[] = {CAP_SETPCAP}; 506 cap_value_t c; in cap_get_mode() 549 const cap_value_t raise_cap_setuid[] = {CAP_SETUID}; in _cap_setuid() [all …]
|
D | cap_flag.c | 18 int cap_get_flag(cap_t cap_d, cap_value_t value, cap_flag_t set, in cap_get_flag() 42 int no_values, const cap_value_t *array_values, in cap_set_flag() 153 cap_value_t bit) in cap_iab_get_vector() 182 int cap_iab_set_vector(cap_iab_t iab, cap_iab_vector_t vec, cap_value_t bit, in cap_iab_set_vector()
|
D | cap_text.c | 72 cap_value_t cmb = cap_max_bits(); in forceall() 297 int cap_from_name(const char *name, cap_value_t *value_p) in cap_from_name() 310 char *cap_to_name(cap_value_t cap) in cap_to_name() 374 cap_value_t cmb = cap_max_bits(); in cap_to_text() 507 cap_value_t c, cmb = cap_max_bits(); in cap_iab_to_text() 574 cap_value_t c = lookupname(&text); in cap_iab_from_text()
|
D | cap_alloc.c | 13 static cap_value_t _cap_max_bits; 23 cap_value_t cap_max_bits(void) { in cap_max_bits()
|
D | libcap.h | 221 cap_value_t min = low, max = high; \ 223 cap_value_t mid = (min+max) / 2; \
|
/external/crosvm/devices/src/virtio/fs/ |
D | caps.rs | 13 pub type cap_value_t = u32; typedef 29 caps: *const cap_value_t, in cap_set_flag() argument 80 impl From<Capability> for cap_value_t { implementation 81 fn from(c: Capability) -> cap_value_t { in from() argument 82 c as cap_value_t in from() 135 caps.as_ptr() as *const cap_value_t, in update() constant
|
/external/libcap/progs/ |
D | capsh.c | 51 static void display_prctl_set(const char *name, int (*fn)(cap_value_t)) in display_prctl_set() argument 160 static const cap_value_t raise_setpcap[1] = { CAP_SETPCAP }; 161 static const cap_value_t raise_chroot[1] = { CAP_SYS_CHROOT }; 236 cap_value_t cap; in arg_drop() 303 cap_value_t cap; in arg_change_amb() 391 cap_value_t cap; in main() 815 cap_value_t cap; in main() 842 cap_value_t cap; in main() 858 cap_value_t cap; in main() 875 cap_value_t cap; in main()
|
D | setcap.c | 74 cap_value_t capflag; in main() 218 cap_value_t cap; in main()
|
/external/ltp/testcases/kernel/security/cap_bound/ |
D | exec_without_inh.c | 48 cap_value_t v[1]; in main()
|
D | cap_bset_inh_bounds.c | 47 cap_value_t v[1]; in main()
|
/external/libcap/go/ |
D | compare-cap.go | 347 if C.cap_iab_set_vector(cIAB, C.CAP_IAB_INH, C.cap_value_t(int(c)), C.CAP_SET) != 0 { 354 if C.cap_iab_set_vector(cIAB, C.CAP_IAB_AMB, C.cap_value_t(int(c)), C.CAP_SET) != 0 { 361 if C.cap_iab_set_vector(cIAB, C.CAP_IAB_BOUND, C.cap_value_t(int(c)), C.CAP_SET) != 0 {
|
/external/ltp/testcases/kernel/syscalls/pivot_root/ |
D | pivot_root01.c | 80 cap_value_t cap_value[] = { CAP_SYS_ADMIN }; in drop_cap_sys_admin()
|
/external/libwebsockets/lib/plat/unix/ |
D | unix-caps.c | 35 _lws_plat_apply_caps(int mode, const cap_value_t *cv, int count) in _lws_plat_apply_caps()
|
/external/ltp/testcases/kernel/syscalls/prctl/ |
D | prctl07.c | 122 cap_value_t caplist[3] = {CAP_NET_RAW, CAP_NET_BIND_SERVICE, CAP_SETPCAP}; in verify_prctl()
|
/external/iputils/ |
D | ping_common.c | 70 static cap_value_t cap_raw = CAP_NET_RAW; 71 static cap_value_t cap_admin = CAP_NET_ADMIN; 139 int modify_capability(cap_value_t cap, cap_flag_value_t on) in modify_capability()
|
D | ping_common.h | 264 extern int modify_capability(cap_value_t, cap_flag_value_t);
|
D | arping.c | 152 static const cap_value_t caps[] = { CAP_NET_RAW, };
|
/external/iputils/ninfod/ |
D | ninfod.c | 499 static const cap_value_t cap_net_raw = CAP_NET_RAW; 500 static const cap_value_t cap_setuid = CAP_SETUID;
|
/external/libwebsockets/include/libwebsockets/ |
D | lws-context-vhost.h | 522 cap_value_t caps[4];
|
/external/linux-kselftest/tools/testing/selftests/safesetid/ |
D | safesetid-test.c | 272 cap_value_t cap_values[] = {CAP_SETUID, CAP_SETGID}; in drop_caps()
|
/external/ltp/testcases/kernel/security/filecaps/ |
D | verify_caps_exec.c | 214 cap_value_t capvalue[1]; in caps_actually_set_test()
|
/external/libwebsockets/lib/core/ |
D | private-lib-core.h | 462 cap_value_t caps[4];
|
/external/linux-kselftest/tools/testing/selftests/bpf/ |
D | test_verifier.c | 814 const cap_value_t cap_val = CAP_SYS_ADMIN; in set_admin() 1057 const cap_value_t cap_val = CAP_SYS_ADMIN; in is_admin()
|