Searched refs:modify_capability (Results 1 – 2 of 2) sorted by relevance
264 extern int modify_capability(cap_value_t, cap_flag_value_t);265 static inline int enable_capability_raw(void) { return modify_capability(CAP_NET_RAW, CAP_SET); … in enable_capability_raw()266 static inline int disable_capability_raw(void) { return modify_capability(CAP_NET_RAW, CAP_CLEAR… in disable_capability_raw()267 static inline int enable_capability_admin(void) { return modify_capability(CAP_NET_ADMIN, CAP_SET)… in enable_capability_admin()268 static inline int disable_capability_admin(void) { return modify_capability(CAP_NET_ADMIN, CAP_CLEA… in disable_capability_admin()270 extern int modify_capability(int);271 static inline int enable_capability_raw(void) { return modify_capability(1); }; in enable_capability_raw()272 static inline int disable_capability_raw(void) { return modify_capability(0); }; in disable_capability_raw()273 static inline int enable_capability_admin(void) { return modify_capability(1); }; in enable_capability_admin()274 static inline int disable_capability_admin(void) { return modify_capability(0); }; in disable_capability_admin()
139 int modify_capability(cap_value_t cap, cap_flag_value_t on) in modify_capability() function173 int modify_capability(int on) in modify_capability() function