Home
last modified time | relevance | path

Searched refs:CAP_PERMITTED (Results 1 – 18 of 18) sorted by relevance

/external/libcap/libcap/
Dcap_file.c102 result->u[i].flat[CAP_PERMITTED] in _fcaps_load()
107 | result->u[i].flat[CAP_PERMITTED]; in _fcaps_load()
112 = result->u[i].flat[CAP_PERMITTED] in _fcaps_load()
170 || cap_d->u[i].flat[CAP_PERMITTED])) { in _fcaps_save()
182 = FIXUP_32BITS(cap_d->u[i].flat[CAP_PERMITTED]); in _fcaps_save()
188 & (cap_d->u[i].flat[CAP_PERMITTED] in _fcaps_save()
Dcap_flag.c102 case CAP_PERMITTED: in cap_clear_flag()
143 | ((a->u[i].flat[CAP_PERMITTED] != b->u[i].flat[CAP_PERMITTED]) in cap_compare()
232 case CAP_PERMITTED: in cap_iab_fill()
Dcap_text.c182 _cap_debugcap("p = ", *res, CAP_PERMITTED); in cap_from_text()
248 clrbits(res, list, CAP_PERMITTED, cap_blks); in cap_from_text()
257 setbits(res, list, CAP_PERMITTED, cap_blks); in cap_from_text()
266 clrbits(res, list, CAP_PERMITTED, cap_blks); in cap_from_text()
341 if (isset_cap(caps, capno, CAP_PERMITTED)) { in getstateflags()
369 _cap_debugcap("p = ", *caps, CAP_PERMITTED); in cap_to_text()
Dcap_proc.c458 (void) cap_clear_flag(working, CAP_PERMITTED); in _cap_set_mode()
530 if (CAP_DIFFERS(cf, CAP_PERMITTED) || CAP_DIFFERS(cf, CAP_EFFECTIVE)) { in cap_get_mode()
695 temp->u[i].flat[CAP_PERMITTED]; in _cap_iab_set_proc()
Dlibcap.h159 #define LIBCAP_PER (1 << CAP_PERMITTED)
/external/ltp/testcases/kernel/syscalls/prctl/
Dprctl07.c127 cap_set_flag(caps, CAP_PERMITTED, numcaps, caplist, CAP_SET); in verify_prctl()
137 cap_clear_flag(caps, CAP_PERMITTED); in verify_prctl()
141 cap_set_flag(caps, CAP_PERMITTED, numcaps, caplist, CAP_SET); in verify_prctl()
/external/ltp/testcases/kernel/security/filecaps/
Dverify_caps_exec.c251 cap_set_flag(fcap, CAP_PERMITTED, 1, capvalue, CAP_SET); in caps_actually_set_test()
272 cap_set_flag(fcap, CAP_PERMITTED, 1, capvalue, CAP_SET); in caps_actually_set_test()
326 cap_set_flag(pcap, CAP_PERMITTED, 1, capvalue, CAP_SET); in caps_actually_set_test()
363 cap_set_flag(cmpcap, CAP_PERMITTED, 1, capvalue, CAP_SET); in caps_actually_set_test()
/external/iputils/ninfod/
Dninfod.c524 cap_get_flag(cap_cur_p, CAP_NET_RAW, CAP_PERMITTED, &cap_ok); in limit_capabilities()
526 cap_set_flag(cap_p, CAP_PERMITTED, 1, &cap_net_raw, CAP_SET); in limit_capabilities()
530 cap_get_flag(cap_cur_p, CAP_SETUID, CAP_PERMITTED, &cap_ok); 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()
/external/libcap/progs/
Dsetcap.c184 CAP_DIFFERS(cmp, CAP_PERMITTED) ? "p" : "", in main()
222 cap_get_flag(cap_d, cap, CAP_PERMITTED, &per_state) != -1; in main()
Dcapsh.c852 if (cap_get_flag(orig, cap, CAP_PERMITTED, &enabled) || !enabled) { in main()
/external/ltp/testcases/kernel/containers/userns/
Duserns06_capcheck.c60 cap_get_flag(caps, i, CAP_PERMITTED, &flag_val); in main()
Duserns01.c77 cap_get_flag(caps, i, CAP_PERMITTED, &flag_val); in child_fn1()
/external/iputils/
Dping_common.c94 cap_get_flag(cap_cur_p, CAP_NET_ADMIN, CAP_PERMITTED, &cap_ok); in limit_capabilities()
97 cap_set_flag(cap_p, CAP_PERMITTED, 1, &cap_admin, CAP_SET); in limit_capabilities()
100 cap_get_flag(cap_cur_p, CAP_NET_RAW, CAP_PERMITTED, &cap_ok); in limit_capabilities()
103 cap_set_flag(cap_p, CAP_PERMITTED, 1, &cap_raw, CAP_SET); in limit_capabilities()
151 cap_get_flag(cap_p, cap, CAP_PERMITTED, &cap_ok); in modify_capability()
Darping.c167 cap_get_flag(cap_p, CAP_NET_RAW, CAP_PERMITTED, &cap_raw); in limit_capabilities()
175 cap_set_flag(cap_p, CAP_PERMITTED, 1, caps, CAP_SET); in limit_capabilities()
/external/ltp/testcases/kernel/security/securebits/
Dcheck_keepcaps.c40 ret = cap_get_flag(c, i, CAP_PERMITTED, &v); in eff_caps_empty()
/external/libwebsockets/lib/plat/unix/
Dunix-caps.c171 _lws_plat_apply_caps(CAP_PERMITTED, context->caps, in lws_plat_drop_app_privileges()
/external/libcap/libcap/include/sys/
Dcapability.h61 CAP_PERMITTED = 1, /* Specifies the permitted flag */ enumerator
/external/minijail/
Dlibminijail.c2040 if (cap_set_flag(caps, CAP_PERMITTED, 1, flag, CAP_SET)) in drop_caps()
2077 if (cap_set_flag(caps, CAP_PERMITTED, 1, flag, CAP_CLEAR)) in drop_caps()