/external/ltp/testcases/kernel/security/filecaps/ |
D | verify_caps_exec.c | 246 cap_set_flag(fcap, CAP_PERMITTED, 1, capvalue, CAP_SET); in caps_actually_set_test() 267 cap_set_flag(fcap, CAP_PERMITTED, 1, capvalue, CAP_SET); in caps_actually_set_test() 268 cap_set_flag(fcap, CAP_EFFECTIVE, 1, capvalue, CAP_SET); in caps_actually_set_test() 289 cap_set_flag(cap_fullpi, CAP_INHERITABLE, 1, capvalue, CAP_SET); in caps_actually_set_test() 321 cap_set_flag(pcap, CAP_PERMITTED, 1, capvalue, CAP_SET); in caps_actually_set_test() 325 cap_set_flag(fcap, CAP_INHERITABLE, 1, capvalue, CAP_SET); in caps_actually_set_test() 348 cap_set_flag(fcap, CAP_EFFECTIVE, 1, capvalue, CAP_SET); in caps_actually_set_test() 349 cap_set_flag(pcap, CAP_EFFECTIVE, 1, capvalue, CAP_SET); in caps_actually_set_test() 358 cap_set_flag(cmpcap, CAP_PERMITTED, 1, capvalue, CAP_SET); in caps_actually_set_test() 359 cap_set_flag(cmpcap, CAP_EFFECTIVE, 1, capvalue, CAP_SET); in caps_actually_set_test()
|
/external/libcap/libcap/ |
D | cap_flag.c | 26 *raised = isset_cap(cap_d,value,set) ? CAP_SET:CAP_CLEAR; in cap_get_flag() 50 && (raise == CAP_SET || raise == CAP_CLEAR) ) { in cap_set_flag() 58 if (raise == CAP_SET) { in cap_set_flag()
|
/external/ltp/testcases/kernel/security/cap_bound/ |
D | cap_bset_inh_bounds.c | 76 if (ret || f != CAP_SET) { in main() 93 if (ret || f != CAP_SET) { in main()
|
D | check_pe.c | 68 if (f == CAP_SET) { in main()
|
D | exec_without_inh.c | 53 if (f == CAP_SET) { in main()
|
D | exec_with_inh.c | 67 if (ret || f != CAP_SET) { in main()
|
/external/iputils/ninfod/ |
D | ninfod.c | 526 cap_set_flag(cap_p, CAP_PERMITTED, 1, &cap_net_raw, CAP_SET); in limit_capabilities() 527 cap_set_flag(cap_p, CAP_EFFECTIVE, 1, &cap_net_raw, CAP_SET); in limit_capabilities() 532 cap_set_flag(cap_p, CAP_PERMITTED, 1, &cap_setuid, CAP_SET); in limit_capabilities() 565 cap_set_flag(cap_p, CAP_PERMITTED, 1, &cap_setuid, CAP_SET); in drop_capabilities() 566 cap_set_flag(cap_p, CAP_EFFECTIVE, 1, &cap_setuid, CAP_SET); in drop_capabilities()
|
/external/libcap/progs/ |
D | capsh.c | 76 raise_setpcap, CAP_SET) != 0) { in main() 143 raise_setpcap, CAP_SET) != 0)) { in main() 205 raise_setpcap, CAP_SET) != 0)) { in main() 265 CAP_SET) != 0) { in main()
|
D | setcap.c | 159 if (cap_set_flag(mycaps, CAP_EFFECTIVE, 1, &capflag, CAP_SET) in main()
|
/external/iputils/ |
D | ping_common.h | 265 static inline int enable_capability_raw(void) { return modify_capability(CAP_NET_RAW, CAP_SET); … in enable_capability_raw() 267 static inline int enable_capability_admin(void) { return modify_capability(CAP_NET_ADMIN, CAP_SET)… in enable_capability_admin()
|
D | arping.c | 175 cap_set_flag(cap_p, CAP_PERMITTED, 1, caps, CAP_SET); in limit_capabilities() 210 if (cap_raw != CAP_SET) in modify_capability_raw() 219 cap_set_flag(cap_p, CAP_EFFECTIVE, 1, caps, on ? CAP_SET : CAP_CLEAR); in modify_capability_raw()
|
D | ping_common.c | 97 cap_set_flag(cap_p, CAP_PERMITTED, 1, &cap_admin, CAP_SET); in limit_capabilities() 103 cap_set_flag(cap_p, CAP_PERMITTED, 1, &cap_raw, CAP_SET); in limit_capabilities()
|
/external/libcap/libcap/include/sys/ |
D | capability.h | 63 CAP_SET=1 /* The flag is set/enabled */ enumerator
|
/external/minijail/ |
D | minijail0_cli.c | 115 if (cap_value == CAP_SET) in use_caps() 282 return cap_value == CAP_SET; in has_cap_setgid()
|
D | libminijail.c | 1850 if (cap_set_flag(caps, CAP_EFFECTIVE, 1, flag, CAP_SET)) in drop_caps() 1852 if (cap_set_flag(caps, CAP_PERMITTED, 1, flag, CAP_SET)) in drop_caps() 1854 if (cap_set_flag(caps, CAP_INHERITABLE, 1, flag, CAP_SET)) in drop_caps()
|
/external/perf_data_converter/src/quipper/ |
D | perf_parser_test.cc | 594 return value == CAP_SET; in HaveCapability()
|
/external/linux-kselftest/tools/testing/selftests/bpf/ |
D | test_verifier.c | 14213 admin ? CAP_SET : CAP_CLEAR)) { in set_admin() 14344 return (sysadmin == CAP_SET); in is_admin()
|