Home
last modified time | relevance | path

Searched refs:test_gid (Results 1 – 3 of 3) sorted by relevance

/systemd-251/src/test/
Dtest-capability.c24 static gid_t test_gid = -1; variable
109 test_gid = nobody->pw_gid; in setup_tests()
126 assert_se(drop_privileges(test_uid, test_gid, test_flags | (1ULL << CAP_NET_RAW)) >= 0); in test_drop_privileges_keep_net_raw()
128 assert_se(getgid() == test_gid); 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()
145 assert_se(getgid() == test_gid); in test_drop_privileges_dontkeep_net_raw()
153 assert_se(drop_privileges(test_uid, test_gid, test_flags) >= 0); in test_drop_privileges_fail()
155 assert_se(getgid() == test_gid); in test_drop_privileges_fail()
157 assert_se(drop_privileges(test_uid, test_gid, 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()
[all …]
Dtest-fs-util.c551 uid_t test_uid, test_gid; in TEST() local
559 test_gid = geteuid() == 0 ? 65534 : getgid(); in TEST()
567 r = touch_file(a, false, test_mtime, test_uid, test_gid, 0640); in TEST()
576 assert_se(st.st_gid == test_gid); in TEST()
583 assert_se(touch_file(a, false, test_mtime, test_uid, test_gid, 0640) >= 0); in TEST()
586 assert_se(st.st_gid == test_gid); in TEST()
593 assert_se(touch_file(a, false, test_mtime, test_uid, test_gid, 0640) >= 0); in TEST()
596 assert_se(st.st_gid == test_gid); in TEST()
603 assert_se(touch_file(a, false, test_mtime, test_uid, test_gid, 0640) >= 0); in TEST()
606 assert_se(st.st_gid == test_gid); in TEST()
[all …]
Dtest-socket-util.c169 gid_t test_gid; in TEST() local
175 test_gid = 2; in TEST()
180 assert_se(setresgid(test_gid, test_gid, test_gid) >= 0); in TEST()
187 test_gid = getgid(); in TEST()
204 assert_se(ucred.gid == test_gid); in TEST()