Home
last modified time | relevance | path

Searched refs:PR_CAP_AMBIENT (Results 1 – 4 of 4) sorted by relevance

/systemd-251/src/test/
Dtest-capability.c111 r = prctl(PR_CAP_AMBIENT, PR_CAP_AMBIENT_CLEAR_ALL, 0, 0, 0); in setup_tests()
207 assert_se(prctl(PR_CAP_AMBIENT, PR_CAP_AMBIENT_IS_SET, CAP_CHOWN, 0, 0) == 0); in test_apply_ambient_caps()
219 assert_se(prctl(PR_CAP_AMBIENT, PR_CAP_AMBIENT_IS_SET, CAP_CHOWN, 0, 0) == 1); in test_apply_ambient_caps()
228 assert_se(prctl(PR_CAP_AMBIENT, PR_CAP_AMBIENT_IS_SET, CAP_CHOWN, 0, 0) == 0); in test_apply_ambient_caps()
Dtest-execute.c1012 r = prctl(PR_CAP_AMBIENT, PR_CAP_AMBIENT_CLEAR_ALL, 0, 0, 0); in test_exec_ambientcapabilities()
/systemd-251/src/basic/
Dmissing_prctl.h7 #ifndef PR_CAP_AMBIENT
8 #define PR_CAP_AMBIENT 47 macro
Dcapability-util.c145 if (prctl(PR_CAP_AMBIENT, PR_CAP_AMBIENT_RAISE, i, 0, 0) < 0) in capability_ambient_set_apply()
150 r = prctl(PR_CAP_AMBIENT, PR_CAP_AMBIENT_IS_SET, i, 0, 0); in capability_ambient_set_apply()
155 if (prctl(PR_CAP_AMBIENT, PR_CAP_AMBIENT_LOWER, i, 0, 0) < 0) in capability_ambient_set_apply()
394 cache = prctl(PR_CAP_AMBIENT, PR_CAP_AMBIENT_IS_SET, CAP_KILL, 0, 0) >= 0 || in ambient_capabilities_supported()