Searched refs:test_flags (Results 1 – 1 of 1) sorted by relevance
/systemd-251/src/test/ |
D | test-capability.c | 28 static const uint64_t test_flags = UINT64_C(1) << CAP_SYS_PTRACE; variable 31 static const uint64_t test_flags = UINT64_C(1) << CAP_DAC_OVERRIDE; variable 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()
|