/external/libcap/libcap/ |
D | cap_proc.c | 426 int ret = cap_set_flag(working, CAP_EFFECTIVE, in _cap_set_mode() 471 (void) cap_clear_flag(working, CAP_EFFECTIVE); in _cap_set_mode() 530 if (CAP_DIFFERS(cf, CAP_PERMITTED) || CAP_DIFFERS(cf, CAP_EFFECTIVE)) { in cap_get_mode() 551 (void) cap_set_flag(working, CAP_EFFECTIVE, in _cap_setuid() 575 (void) cap_clear_flag(working, CAP_EFFECTIVE); in _cap_setuid() 606 (void) cap_set_flag(working, CAP_EFFECTIVE, in _cap_setgroups() 638 (void) cap_clear_flag(working, CAP_EFFECTIVE); in _cap_setgroups() 703 ret = cap_set_flag(working, CAP_EFFECTIVE, in _cap_iab_set_proc() 826 (void) cap_set_flag(working, CAP_EFFECTIVE, in _cap_chroot() 841 (void) cap_clear_flag(working, CAP_EFFECTIVE); in _cap_chroot()
|
D | cap_flag.c | 101 case CAP_EFFECTIVE: in cap_clear_flag() 139 ((a->u[i].flat[CAP_EFFECTIVE] != b->u[i].flat[CAP_EFFECTIVE]) in cap_compare() 230 case CAP_EFFECTIVE: in cap_iab_fill()
|
D | cap_file.c | 105 result->u[i].flat[CAP_EFFECTIVE] in _fcaps_load() 113 = result->u[i].flat[CAP_EFFECTIVE] = 0; in _fcaps_load() 165 eff_not_zero |= cap_d->u[i].flat[CAP_EFFECTIVE]; in _fcaps_save() 168 if ((cap_d->u[i].flat[CAP_EFFECTIVE] in _fcaps_save() 187 && ((~(cap_d->u[i].flat[CAP_EFFECTIVE])) in _fcaps_save()
|
D | cap_text.c | 180 _cap_debugcap("e = ", *res, CAP_EFFECTIVE); in cap_from_text() 247 clrbits(res, list, CAP_EFFECTIVE, cap_blks); in cap_from_text() 255 setbits(res, list, CAP_EFFECTIVE, cap_blks); in cap_from_text() 264 clrbits(res, list, CAP_EFFECTIVE, cap_blks); in cap_from_text() 338 if (isset_cap(caps, capno, CAP_EFFECTIVE)) { in getstateflags() 367 _cap_debugcap("e = ", *caps, CAP_EFFECTIVE); in cap_to_text()
|
D | libcap.h | 157 #define LIBCAP_EFF (1 << CAP_EFFECTIVE)
|
/external/libcap/progs/ |
D | setcap.c | 186 CAP_DIFFERS(cmp, CAP_EFFECTIVE) ? "e" : ""); in main() 200 if (cap_set_flag(mycaps, CAP_EFFECTIVE, 1, &capflag, CAP_SET) in main() 227 cap_get_flag(cap_d, cap, CAP_EFFECTIVE, &eff_state); in main()
|
D | capsh.c | 181 if (cap_set_flag(*raised_for_setpcap_p, CAP_EFFECTIVE, 1, in push_pcap() 433 && (cap_set_flag(raised_for_setpcap, CAP_EFFECTIVE, 1, in main() 495 && (cap_set_flag(raised_for_setpcap, CAP_EFFECTIVE, 1, in main() 599 if (cap_set_flag(raised_for_chroot, CAP_EFFECTIVE, 1, raise_chroot, in main()
|
/external/ltp/testcases/kernel/security/filecaps/ |
D | verify_caps_exec.c | 273 cap_set_flag(fcap, CAP_EFFECTIVE, 1, capvalue, CAP_SET); in caps_actually_set_test() 353 cap_set_flag(fcap, CAP_EFFECTIVE, 1, capvalue, CAP_SET); in caps_actually_set_test() 354 cap_set_flag(pcap, CAP_EFFECTIVE, 1, capvalue, CAP_SET); in caps_actually_set_test() 364 cap_set_flag(cmpcap, CAP_EFFECTIVE, 1, capvalue, CAP_SET); in caps_actually_set_test()
|
/external/ltp/testcases/kernel/containers/userns/ |
D | userns06_capcheck.c | 57 cap_get_flag(caps, i, CAP_EFFECTIVE, &flag_val); in main()
|
D | userns01.c | 74 cap_get_flag(caps, i, CAP_EFFECTIVE, &flag_val); in child_fn1()
|
/external/ltp/testcases/kernel/security/cap_bound/ |
D | check_pe.c | 60 ret = cap_get_flag(cur, CAP_SYS_ADMIN, CAP_EFFECTIVE, &f); in main()
|
/external/ltp/testcases/kernel/syscalls/pivot_root/ |
D | pivot_root01.c | 85 if (cap_set_flag(cap, CAP_EFFECTIVE, 1, cap_value, CAP_CLEAR)) in drop_cap_sys_admin()
|
/external/libwebsockets/lib/plat/unix/ |
D | unix-caps.c | 186 _lws_plat_apply_caps(CAP_EFFECTIVE, context->caps, in lws_plat_drop_app_privileges()
|
/external/ltp/testcases/kernel/syscalls/prctl/ |
D | prctl07.c | 125 cap_set_flag(caps, CAP_EFFECTIVE, numcaps, caplist, CAP_SET); in verify_prctl()
|
/external/libcap/libcap/include/sys/ |
D | capability.h | 60 CAP_EFFECTIVE = 0, /* Specifies the effective flag */ enumerator
|
/external/iputils/ninfod/ |
D | ninfod.c | 527 cap_set_flag(cap_p, CAP_EFFECTIVE, 1, &cap_net_raw, CAP_SET); in limit_capabilities() 566 cap_set_flag(cap_p, CAP_EFFECTIVE, 1, &cap_setuid, CAP_SET); in drop_capabilities()
|
/external/linux-kselftest/tools/testing/selftests/safesetid/ |
D | safesetid-test.c | 277 cap_set_flag(caps, CAP_EFFECTIVE, 2, cap_values, CAP_SET); in drop_caps()
|
/external/minijail/ |
D | minijail0_cli.c | 160 if (cap_get_flag(parsed_caps, i, CAP_EFFECTIVE, in use_caps() 340 if (cap_get_flag(caps, CAP_SETGID, CAP_EFFECTIVE, &cap_value)) { in has_cap_setgid()
|
D | libminijail.c | 2038 if (cap_set_flag(caps, CAP_EFFECTIVE, 1, flag, CAP_SET)) in drop_caps() 2075 if (cap_set_flag(caps, CAP_EFFECTIVE, 1, flag, CAP_CLEAR)) in drop_caps()
|
/external/linux-kselftest/tools/testing/selftests/bpf/ |
D | test_verifier.c | 822 if (cap_set_flag(caps, CAP_EFFECTIVE, 1, &cap_val, in set_admin() 1070 if (cap_get_flag(caps, cap_val, CAP_EFFECTIVE, &sysadmin)) in is_admin()
|
/external/iputils/ |
D | ping_common.c | 157 cap_set_flag(cap_p, CAP_EFFECTIVE, 1, &cap, on); in modify_capability()
|
D | arping.c | 219 cap_set_flag(cap_p, CAP_EFFECTIVE, 1, caps, on ? CAP_SET : CAP_CLEAR); in modify_capability_raw()
|