Searched refs:drop_privileges (Results 1 – 7 of 7) sorted by relevance
/systemd-251/src/test/ |
D | test-capability.c | 126 assert_se(drop_privileges(test_uid, test_gid, test_flags | (1ULL << CAP_NET_RAW)) >= 0); in test_drop_privileges_keep_net_raw() 143 assert_se(drop_privileges(test_uid, test_gid, test_flags) >= 0); in test_drop_privileges_dontkeep_net_raw() 153 assert_se(drop_privileges(test_uid, test_gid, test_flags) >= 0); in test_drop_privileges_fail() 157 assert_se(drop_privileges(test_uid, test_gid, test_flags) < 0); in test_drop_privileges_fail() 158 assert_se(drop_privileges(0, 0, test_flags) < 0); in test_drop_privileges_fail() 177 assert_se(drop_privileges(test_uid, test_gid, test_flags | (1ULL << CAP_KILL)) >= 0); in test_have_effective_cap()
|
/systemd-251/src/basic/ |
D | capability-util.h | 24 int drop_privileges(uid_t uid, gid_t gid, uint64_t keep_capabilities);
|
D | capability-util.c | 304 int drop_privileges(uid_t uid, gid_t gid, uint64_t keep_capabilities) { in drop_privileges() function
|
/systemd-251/src/resolve/ |
D | resolved.c | 62 r = drop_privileges(uid, gid, in run()
|
/systemd-251/src/network/ |
D | networkd.c | 60 r = drop_privileges(uid, gid, in run()
|
/systemd-251/src/timesync/ |
D | timesyncd.c | 117 r = drop_privileges(uid, gid, (1ULL << CAP_SYS_TIME)); in run()
|
/systemd-251/src/coredump/ |
D | coredump.c | 763 return drop_privileges(uid, gid, 0); in change_uid_gid()
|