Home
last modified time | relevance | path

Searched refs:CAP_CLEAR (Results 1 – 7 of 7) sorted by relevance

/external/libcap/libcap/
Dcap_flag.c26 *raised = isset_cap(cap_d,value,set) ? CAP_SET:CAP_CLEAR; in cap_get_flag()
50 && (raise == CAP_SET || raise == CAP_CLEAR) ) { in cap_set_flag()
/external/iputils/
Dping_common.c93 cap_ok = CAP_CLEAR; in limit_capabilities()
96 if (cap_ok != CAP_CLEAR) in limit_capabilities()
99 cap_ok = CAP_CLEAR; in limit_capabilities()
102 if (cap_ok != CAP_CLEAR) in limit_capabilities()
150 cap_ok = CAP_CLEAR; in modify_capability()
152 if (cap_ok == CAP_CLEAR) { in modify_capability()
Dping_common.h266 static inline int disable_capability_raw(void) { return modify_capability(CAP_NET_RAW, CAP_CLEAR in disable_capability_raw()
268 … inline int disable_capability_admin(void) { return modify_capability(CAP_NET_ADMIN, CAP_CLEAR); }; in disable_capability_admin()
Darping.c153 static cap_flag_value_t cap_raw = CAP_CLEAR;
169 if (cap_raw != CAP_CLEAR) { in limit_capabilities()
219 cap_set_flag(cap_p, CAP_EFFECTIVE, 1, caps, on ? CAP_SET : CAP_CLEAR); in modify_capability_raw()
/external/libcap/libcap/include/sys/
Dcapability.h62 CAP_CLEAR=0, /* The flag is cleared/disabled */ enumerator
/external/iputils/ninfod/
Dninfod.c525 if (cap_ok != CAP_CLEAR) { in limit_capabilities()
531 if (cap_ok != CAP_CLEAR) in limit_capabilities()
564 if (cap_ok != CAP_CLEAR) { in drop_capabilities()
/external/minijail/
Dlibminijail.c1249 if (cap_set_flag(caps, CAP_EFFECTIVE, 1, flag, CAP_CLEAR)) in drop_caps()
1251 if (cap_set_flag(caps, CAP_PERMITTED, 1, flag, CAP_CLEAR)) in drop_caps()
1253 if (cap_set_flag(caps, CAP_INHERITABLE, 1, flag, CAP_CLEAR)) in drop_caps()