/external/iputils/ninfod/ |
ninfod.c | 509 cap_t cap_p, cap_cur_p; local 511 cap_p = cap_init(); 512 if (!cap_p) { 526 cap_set_flag(cap_p, CAP_PERMITTED, 1, &cap_net_raw, CAP_SET); 527 cap_set_flag(cap_p, CAP_EFFECTIVE, 1, &cap_net_raw, CAP_SET); 532 cap_set_flag(cap_p, CAP_PERMITTED, 1, &cap_setuid, CAP_SET); 534 if (cap_set_proc(cap_p) < 0) { 546 cap_free(cap_p); 555 cap_t cap_p; local 557 cap_p = cap_init() [all...] |
/external/iputils/ |
arping.c | 159 cap_t cap_p; local 161 cap_p = cap_get_proc(); 162 if (!cap_p) { 167 cap_get_flag(cap_p, CAP_NET_RAW, CAP_PERMITTED, &cap_raw); 170 if (cap_clear(cap_p) < 0) { 175 cap_set_flag(cap_p, CAP_PERMITTED, 1, caps, CAP_SET); 177 if (cap_set_proc(cap_p) < 0) { 199 cap_free(cap_p); 208 cap_t cap_p; local 213 cap_p = cap_get_proc() 249 cap_t cap_p = cap_init(); local [all...] |
ping_common.c | 78 cap_t cap_p; local 87 cap_p = cap_init(); 88 if (!cap_p) { 97 cap_set_flag(cap_p, CAP_PERMITTED, 1, &cap_admin, CAP_SET); 103 cap_set_flag(cap_p, CAP_PERMITTED, 1, &cap_raw, CAP_SET); 105 if (cap_set_proc(cap_p) < 0) { 125 cap_free(cap_p); 141 cap_t cap_p = cap_get_proc(); local 145 if (!cap_p) { 151 cap_get_flag(cap_p, cap, CAP_PERMITTED, &cap_ok) [all...] |