Searched refs:PR_CAP_AMBIENT_RAISE (Results 1 - 4 of 4) sorted by relevance

/linux-master/tools/testing/selftests/capabilities/
H A Dtest_execve.c273 if (prctl(PR_CAP_AMBIENT, PR_CAP_AMBIENT_RAISE, CAP_NET_BIND_SERVICE, 0, 0, 0) != -1 || errno != EPERM) {
276 "PR_CAP_AMBIENT_RAISE isn't supported\n");
279 "PR_CAP_AMBIENT_RAISE should have failed eith EPERM on a non-inheritable cap\n");
283 "PR_CAP_AMBIENT_RAISE failed on non-inheritable cap\n");
290 if (prctl(PR_CAP_AMBIENT, PR_CAP_AMBIENT_RAISE, CAP_NET_RAW, 0, 0, 0) != -1 || errno != EPERM) {
292 "PR_CAP_AMBIENT_RAISE should have failed on a non-permitted cap\n");
296 "PR_CAP_AMBIENT_RAISE failed on non-permitted cap\n");
301 if (prctl(PR_CAP_AMBIENT, PR_CAP_AMBIENT_RAISE, CAP_NET_BIND_SERVICE, 0, 0, 0) != 0) {
303 "PR_CAP_AMBIENT_RAISE should have succeeded\n");
306 ksft_test_result_pass("PR_CAP_AMBIENT_RAISE worke
[all...]
/linux-master/include/uapi/linux/
H A Dprctl.h197 # define PR_CAP_AMBIENT_RAISE 2 macro
/linux-master/tools/include/uapi/linux/
H A Dprctl.h197 # define PR_CAP_AMBIENT_RAISE 2 macro
/linux-master/security/
H A Dcommoncap.c1364 } else if (arg2 != PR_CAP_AMBIENT_RAISE &&
1368 if (arg2 == PR_CAP_AMBIENT_RAISE &&
1378 if (arg2 == PR_CAP_AMBIENT_RAISE)

Completed in 103 milliseconds