Searched refs:cap_ok (Results 1 – 2 of 2) sorted by relevance
/external/iputils/ |
D | ping_common.c | 79 cap_flag_value_t cap_ok; in limit_capabilities() local 93 cap_ok = CAP_CLEAR; in limit_capabilities() 94 cap_get_flag(cap_cur_p, CAP_NET_ADMIN, CAP_PERMITTED, &cap_ok); in limit_capabilities() 96 if (cap_ok != CAP_CLEAR) in limit_capabilities() 99 cap_ok = CAP_CLEAR; in limit_capabilities() 100 cap_get_flag(cap_cur_p, CAP_NET_RAW, CAP_PERMITTED, &cap_ok); in limit_capabilities() 102 if (cap_ok != CAP_CLEAR) in limit_capabilities() 142 cap_flag_value_t cap_ok; in modify_capability() local 150 cap_ok = CAP_CLEAR; in modify_capability() 151 cap_get_flag(cap_p, cap, CAP_PERMITTED, &cap_ok); in modify_capability() [all …]
|
/external/iputils/ninfod/ |
D | ninfod.c | 501 static cap_flag_value_t cap_ok; variable 524 cap_get_flag(cap_cur_p, CAP_NET_RAW, CAP_PERMITTED, &cap_ok); in limit_capabilities() 525 if (cap_ok != CAP_CLEAR) { in limit_capabilities() 530 cap_get_flag(cap_cur_p, CAP_SETUID, CAP_PERMITTED, &cap_ok); in limit_capabilities() 531 if (cap_ok != CAP_CLEAR) in limit_capabilities() 564 if (cap_ok != CAP_CLEAR) { in drop_capabilities()
|