Searched refs:cap_cur_p (Results 1 – 2 of 2) sorted by relevance
/external/iputils/ninfod/ |
D | ninfod.c | 509 cap_t cap_p, cap_cur_p; in limit_capabilities() local 517 cap_cur_p = cap_get_proc(); in limit_capabilities() 518 if (!cap_cur_p) { in limit_capabilities() 524 cap_get_flag(cap_cur_p, CAP_NET_RAW, CAP_PERMITTED, &cap_ok); in limit_capabilities() 530 cap_get_flag(cap_cur_p, CAP_SETUID, CAP_PERMITTED, &cap_ok); in limit_capabilities() 545 cap_free(cap_cur_p); in limit_capabilities()
|
/external/iputils/ |
D | ping_common.c | 77 cap_t cap_cur_p; in limit_capabilities() local 81 cap_cur_p = cap_get_proc(); in limit_capabilities() 82 if (!cap_cur_p) { in limit_capabilities() 94 cap_get_flag(cap_cur_p, CAP_NET_ADMIN, CAP_PERMITTED, &cap_ok); in limit_capabilities() 100 cap_get_flag(cap_cur_p, CAP_NET_RAW, CAP_PERMITTED, &cap_ok); in limit_capabilities() 126 cap_free(cap_cur_p); in limit_capabilities()
|