Home
last modified time | relevance | path

Searched refs:drop_privileges (Results 1 – 7 of 7) sorted by relevance

/systemd-251/src/test/
Dtest-capability.c126 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/
Dcapability-util.h24 int drop_privileges(uid_t uid, gid_t gid, uint64_t keep_capabilities);
Dcapability-util.c304 int drop_privileges(uid_t uid, gid_t gid, uint64_t keep_capabilities) { in drop_privileges() function
/systemd-251/src/resolve/
Dresolved.c62 r = drop_privileges(uid, gid, in run()
/systemd-251/src/network/
Dnetworkd.c60 r = drop_privileges(uid, gid, in run()
/systemd-251/src/timesync/
Dtimesyncd.c117 r = drop_privileges(uid, gid, (1ULL << CAP_SYS_TIME)); in run()
/systemd-251/src/coredump/
Dcoredump.c763 return drop_privileges(uid, gid, 0); in change_uid_gid()