Home
last modified time | relevance | path

Searched refs:CAP_EFFECTIVE (Results 1 – 22 of 22) sorted by relevance

/external/libcap/libcap/
Dcap_proc.c426 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()
Dcap_flag.c101 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()
Dcap_file.c105 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()
Dcap_text.c180 _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()
Dlibcap.h157 #define LIBCAP_EFF (1 << CAP_EFFECTIVE)
/external/libcap/progs/
Dsetcap.c186 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()
Dcapsh.c181 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/
Dverify_caps_exec.c273 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/
Duserns06_capcheck.c57 cap_get_flag(caps, i, CAP_EFFECTIVE, &flag_val); in main()
Duserns01.c74 cap_get_flag(caps, i, CAP_EFFECTIVE, &flag_val); in child_fn1()
/external/ltp/testcases/kernel/security/cap_bound/
Dcheck_pe.c60 ret = cap_get_flag(cur, CAP_SYS_ADMIN, CAP_EFFECTIVE, &f); in main()
/external/ltp/testcases/kernel/syscalls/pivot_root/
Dpivot_root01.c85 if (cap_set_flag(cap, CAP_EFFECTIVE, 1, cap_value, CAP_CLEAR)) in drop_cap_sys_admin()
/external/libwebsockets/lib/plat/unix/
Dunix-caps.c186 _lws_plat_apply_caps(CAP_EFFECTIVE, context->caps, in lws_plat_drop_app_privileges()
/external/ltp/testcases/kernel/syscalls/prctl/
Dprctl07.c125 cap_set_flag(caps, CAP_EFFECTIVE, numcaps, caplist, CAP_SET); in verify_prctl()
/external/libcap/libcap/include/sys/
Dcapability.h60 CAP_EFFECTIVE = 0, /* Specifies the effective flag */ enumerator
/external/iputils/ninfod/
Dninfod.c527 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/
Dsafesetid-test.c277 cap_set_flag(caps, CAP_EFFECTIVE, 2, cap_values, CAP_SET); in drop_caps()
/external/minijail/
Dminijail0_cli.c160 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()
Dlibminijail.c2038 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/
Dtest_verifier.c822 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/
Dping_common.c157 cap_set_flag(cap_p, CAP_EFFECTIVE, 1, &cap, on); in modify_capability()
Darping.c219 cap_set_flag(cap_p, CAP_EFFECTIVE, 1, caps, on ? CAP_SET : CAP_CLEAR); in modify_capability_raw()