/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/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 | 75 if (cap_set_flag(raised_for_setpcap, CAP_EFFECTIVE, 1, in main() 142 && (cap_set_flag(raised_for_setpcap, CAP_EFFECTIVE, 1, in main() 204 && (cap_set_flag(raised_for_setpcap, CAP_EFFECTIVE, 1, in main() 264 if (cap_set_flag(raised_for_chroot, CAP_EFFECTIVE, 1, raise_chroot, in main()
|
D | setcap.c | 159 if (cap_set_flag(mycaps, CAP_EFFECTIVE, 1, &capflag, CAP_SET) in main()
|
/external/ltp/testcases/kernel/security/cap_bound/ |
D | exec_without_inh.c | 55 ret = cap_set_flag(cur, CAP_INHERITABLE, 1, v, CAP_CLEAR); in main()
|
D | cap_bset_inh_bounds.c | 103 ret = cap_set_flag(tmpcap, CAP_INHERITABLE, 1, v, CAP_CLEAR); in main()
|
/external/libcap/doc/ |
D | Makefile | 10 cap_clear.3 cap_clear_flag.3 cap_get_flag.3 cap_set_flag.3 \
|
/external/libcap/libcap/include/sys/ |
D | capability.h | 77 extern int cap_set_flag(cap_t, cap_flag_t, int, const cap_value_t *,
|
/external/ltp/testcases/kernel/syscalls/pivot_root/ |
D | pivot_root01.c | 84 if (cap_set_flag(cap, CAP_EFFECTIVE, 1, cap_value, CAP_CLEAR)) in drop_cap_sys_admin()
|
/external/libcap/libcap/ |
D | cap_flag.c | 39 int cap_set_flag(cap_t cap_d, cap_flag_t set, in cap_set_flag() function
|
/external/iputils/ |
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() 157 cap_set_flag(cap_p, CAP_EFFECTIVE, 1, &cap, on); in modify_capability()
|
D | arping.c | 175 cap_set_flag(cap_p, CAP_PERMITTED, 1, caps, CAP_SET); in limit_capabilities() 219 cap_set_flag(cap_p, CAP_EFFECTIVE, 1, caps, on ? CAP_SET : CAP_CLEAR); in modify_capability_raw()
|
/external/minijail/ |
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() 1887 if (cap_set_flag(caps, CAP_EFFECTIVE, 1, flag, CAP_CLEAR)) in drop_caps() 1889 if (cap_set_flag(caps, CAP_PERMITTED, 1, flag, CAP_CLEAR)) in drop_caps() 1891 if (cap_set_flag(caps, CAP_INHERITABLE, 1, flag, CAP_CLEAR)) in drop_caps()
|
/external/ltp/include/ |
D | config.h.default | 52 /* Define to 1 if you have the declaration of `cap_set_flag', and to 0 if you
|
/external/linux-kselftest/tools/testing/selftests/bpf/ |
D | test_verifier.c | 14212 if (cap_set_flag(caps, CAP_EFFECTIVE, 1, &cap_val, in set_admin()
|