Lines Matching refs:modify_capability
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); };
266 static inline int disable_capability_raw(void) { return modify_capability(CAP_NET_RAW, CAP_CLEAR); };
267 static inline int enable_capability_admin(void) { return modify_capability(CAP_NET_ADMIN, CAP_SET); };
268 static inline int disable_capability_admin(void) { return modify_capability(CAP_NET_ADMIN, CAP_CLEAR); };
270 extern int modify_capability(int);
271 static inline int enable_capability_raw(void) { return modify_capability(1); };
272 static inline int disable_capability_raw(void) { return modify_capability(0); };
273 static inline int enable_capability_admin(void) { return modify_capability(1); };
274 static inline int disable_capability_admin(void) { return modify_capability(0); };