/external/libcap/libcap/ |
D | cap_file.c | 102 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()
|
D | cap_flag.c | 102 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()
|
D | cap_text.c | 182 _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()
|
D | cap_proc.c | 458 (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()
|
D | libcap.h | 159 #define LIBCAP_PER (1 << CAP_PERMITTED)
|
/external/ltp/testcases/kernel/syscalls/prctl/ |
D | prctl07.c | 127 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/ |
D | verify_caps_exec.c | 251 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/ |
D | ninfod.c | 524 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/ |
D | setcap.c | 184 CAP_DIFFERS(cmp, CAP_PERMITTED) ? "p" : "", in main() 222 cap_get_flag(cap_d, cap, CAP_PERMITTED, &per_state) != -1; in main()
|
D | capsh.c | 852 if (cap_get_flag(orig, cap, CAP_PERMITTED, &enabled) || !enabled) { in main()
|
/external/ltp/testcases/kernel/containers/userns/ |
D | userns06_capcheck.c | 60 cap_get_flag(caps, i, CAP_PERMITTED, &flag_val); in main()
|
D | userns01.c | 77 cap_get_flag(caps, i, CAP_PERMITTED, &flag_val); in child_fn1()
|
/external/iputils/ |
D | ping_common.c | 94 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()
|
D | arping.c | 167 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/ |
D | check_keepcaps.c | 40 ret = cap_get_flag(c, i, CAP_PERMITTED, &v); in eff_caps_empty()
|
/external/libwebsockets/lib/plat/unix/ |
D | unix-caps.c | 171 _lws_plat_apply_caps(CAP_PERMITTED, context->caps, in lws_plat_drop_app_privileges()
|
/external/libcap/libcap/include/sys/ |
D | capability.h | 61 CAP_PERMITTED = 1, /* Specifies the permitted flag */ enumerator
|
/external/minijail/ |
D | libminijail.c | 2040 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()
|