Searched refs:cap_p (Results 1 – 4 of 4) sorted by relevance
/external/iputils/ninfod/ |
D | ninfod.c | 509 cap_t cap_p, cap_cur_p; in limit_capabilities() local 511 cap_p = cap_init(); in limit_capabilities() 512 if (!cap_p) { in limit_capabilities() 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() 534 if (cap_set_proc(cap_p) < 0) { in limit_capabilities() 546 cap_free(cap_p); in limit_capabilities() 555 cap_t cap_p; in drop_capabilities() local 557 cap_p = cap_init(); in drop_capabilities() [all …]
|
/external/iputils/ |
D | arping.c | 159 cap_t cap_p; in limit_capabilities() local 161 cap_p = cap_get_proc(); in limit_capabilities() 162 if (!cap_p) { in limit_capabilities() 167 cap_get_flag(cap_p, CAP_NET_RAW, CAP_PERMITTED, &cap_raw); in limit_capabilities() 170 if (cap_clear(cap_p) < 0) { in limit_capabilities() 175 cap_set_flag(cap_p, CAP_PERMITTED, 1, caps, CAP_SET); in limit_capabilities() 177 if (cap_set_proc(cap_p) < 0) { in limit_capabilities() 199 cap_free(cap_p); in limit_capabilities() 208 cap_t cap_p; in modify_capability_raw() local 213 cap_p = cap_get_proc(); in modify_capability_raw() [all …]
|
D | ping_common.c | 78 cap_t cap_p; in limit_capabilities() local 87 cap_p = cap_init(); in limit_capabilities() 88 if (!cap_p) { in limit_capabilities() 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() 105 if (cap_set_proc(cap_p) < 0) { in limit_capabilities() 125 cap_free(cap_p); in limit_capabilities() 141 cap_t cap_p = cap_get_proc(); in modify_capability() local 145 if (!cap_p) { in modify_capability() 151 cap_get_flag(cap_p, cap, CAP_PERMITTED, &cap_ok); in modify_capability() [all …]
|
/external/python/pyasn1-modules/tests/ |
D | test_rfc6664.py | 54 cap_p, rest = der_decode (substrate, 57 assert cap_p.prettyPrint() 58 assert der_encode(cap_p) == substrate
|