Lines Matching refs:test_uid
33 static uid_t test_uid = -1;
79 test_uid = nobody->pw_uid;
104 assert_se(drop_privileges(test_uid, test_gid, test_flags | (1ULL << CAP_NET_RAW)) >= 0);
105 assert_se(getuid() == test_uid);
121 assert_se(drop_privileges(test_uid, test_gid, test_flags) >= 0);
122 assert_se(getuid() == test_uid);
131 assert_se(drop_privileges(test_uid, test_gid, test_flags) >= 0);
132 assert_se(getuid() == test_uid);
135 assert_se(drop_privileges(test_uid, test_gid, test_flags) < 0);
149 assert_se(drop_privileges(test_uid, test_gid, test_flags | (1ULL << CAP_KILL)) >= 0);
150 assert_se(getuid() == test_uid);