Home
last modified time | relevance | path

Searched refs:CAP_SET (Results 1 – 17 of 17) sorted by relevance

/external/ltp/testcases/kernel/security/filecaps/
Dverify_caps_exec.c246 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/
Dcap_flag.c26 *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/
Dcap_bset_inh_bounds.c76 if (ret || f != CAP_SET) { in main()
93 if (ret || f != CAP_SET) { in main()
Dcheck_pe.c68 if (f == CAP_SET) { in main()
Dexec_without_inh.c53 if (f == CAP_SET) { in main()
Dexec_with_inh.c67 if (ret || f != CAP_SET) { in main()
/external/iputils/ninfod/
Dninfod.c526 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/
Dcapsh.c76 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()
Dsetcap.c159 if (cap_set_flag(mycaps, CAP_EFFECTIVE, 1, &capflag, CAP_SET) in main()
/external/iputils/
Dping_common.h265 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()
Darping.c175 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()
Dping_common.c97 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/
Dcapability.h63 CAP_SET=1 /* The flag is set/enabled */ enumerator
/external/minijail/
Dminijail0_cli.c115 if (cap_value == CAP_SET) in use_caps()
282 return cap_value == CAP_SET; in has_cap_setgid()
Dlibminijail.c1850 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/
Dperf_parser_test.cc594 return value == CAP_SET; in HaveCapability()
/external/linux-kselftest/tools/testing/selftests/bpf/
Dtest_verifier.c14213 admin ? CAP_SET : CAP_CLEAR)) { in set_admin()
14344 return (sysadmin == CAP_SET); in is_admin()