Lines Matching defs:cap
21 * ambient set. Even though this cap is not in set, it also should return 0.
46 static inline void check_cap_raise(unsigned int cap, char *message, int fail_flag)
48 TEST(prctl(PR_CAP_AMBIENT, PR_CAP_AMBIENT_RAISE, cap, 0, 0));
72 static inline void check_cap_is_set(unsigned int cap, char *message, int val)
74 TEST(prctl(PR_CAP_AMBIENT, PR_CAP_AMBIENT_IS_SET, cap, 0, 0));
85 static inline void check_cap_lower(unsigned int cap, char *message)
87 TEST(prctl(PR_CAP_AMBIENT, PR_CAP_AMBIENT_LOWER, cap, 0, 0));
113 check_cap_raise(CAP_NET_BIND_SERVICE, "on non-inheritable cap", 1);
118 check_cap_raise(CAP_NET_RAW, "on non-permitted cap", 1);
127 /*Even this cap has been in ambient set, raise succeeds and return 0*/
135 /*move a cap what was not in ambient set, it also return 0*/
143 tst_res(TINFO, "raise cap for clear");