Lines Matching refs:prctl
10 * Test the PR_CAP_AMBIENT of prctl(2).
30 #include <sys/prctl.h>
37 #include "lapi/prctl.h"
48 TEST(prctl(PR_CAP_AMBIENT, PR_CAP_AMBIENT_RAISE, cap, 0, 0));
74 TEST(prctl(PR_CAP_AMBIENT, PR_CAP_AMBIENT_IS_SET, cap, 0, 0));
87 TEST(prctl(PR_CAP_AMBIENT, PR_CAP_AMBIENT_LOWER, cap, 0, 0));
122 prctl(PR_SET_SECUREBITS, SECBIT_NO_CAP_AMBIENT_RAISE);
124 prctl(PR_SET_SECUREBITS, 0);
142 prctl(PR_CAP_AMBIENT, PR_CAP_AMBIENT_RAISE, CAP_NET_BIND_SERVICE, 0, 0);
144 TEST(prctl(PR_CAP_AMBIENT, PR_CAP_AMBIENT_CLEAR_ALL, 0, 0, 0));
161 TEST(prctl(PR_CAP_AMBIENT, PR_CAP_AMBIENT_CLEAR_ALL, 0, 0, 0));