Lines Matching full:cap
13 * and retrun EPERM. We also raise a CAP twice.
16 * Even though this cap is not in set, it also should return 0.
41 static inline void check_cap_raise(unsigned int cap, char *message, int fail_flag) in check_cap_raise() argument
43 TEST(prctl(PR_CAP_AMBIENT, PR_CAP_AMBIENT_RAISE, cap, 0, 0, 0)); in check_cap_raise()
67 static inline void check_cap_is_set(unsigned int cap, char *message, int val) in check_cap_is_set() argument
69 TEST(prctl(PR_CAP_AMBIENT, PR_CAP_AMBIENT_IS_SET, cap, 0, 0, 0)); in check_cap_is_set()
80 static inline void check_cap_lower(unsigned int cap, char *message) in check_cap_lower() argument
82 TEST(prctl(PR_CAP_AMBIENT, PR_CAP_AMBIENT_LOWER, cap, 0, 0, 0)); in check_cap_lower()
108 check_cap_raise(CAP_NET_BIND_SERVICE, "on non-inheritable cap", 1); in verify_prctl()
113 check_cap_raise(CAP_NET_RAW, "on non-permitted cap", 1); in verify_prctl()
122 /*Even this cap has been in ambient set, raise succeeds and return 0*/ in verify_prctl()
130 /*move a cap what was not in ambient set, it also return 0*/ in verify_prctl()
138 tst_res(TINFO, "raise cap for clear"); in verify_prctl()