Lines Matching refs:PCHECK
48 PCHECK(cwd); in WorkingDirectoryIsRoot()
98 PCHECK(0 == getresuid(&old_ruid, &old_euid, &old_suid)); in SANDBOX_TEST()
99 PCHECK(0 == getresgid(&old_rgid, &old_egid, &old_sgid)); in SANDBOX_TEST()
103 PCHECK(0 == getresuid(&new_ruid, &new_euid, &new_suid)); in SANDBOX_TEST()
109 PCHECK(0 == getresgid(&new_rgid, &new_egid, &new_sgid)); in SANDBOX_TEST()
140 PCHECK(0 == chdir("/proc/")); in SANDBOX_TEST()
142 PCHECK(0 == chdir("/")); in SANDBOX_TEST()
206 PCHECK(chroot("/") == 0); in SANDBOX_TEST()
211 PCHECK(chroot("/") == 0); in SANDBOX_TEST()
214 PCHECK(chroot("/") == -1 && errno == EPERM); in SANDBOX_TEST()
229 PCHECK(actual_cap != nullptr); in SANDBOX_TEST()
232 PCHECK(expected_cap != nullptr); in SANDBOX_TEST()
236 PCHECK(cap_set_flag(expected_cap.get(), flag, 1, &allowed_cap, CAP_SET) == in SANDBOX_TEST()
262 PCHECK(sigaction(SIGUSR1, &action, nullptr) == 0); in SANDBOX_TEST()
264 PCHECK(raise(SIGUSR1) == 0); in SANDBOX_TEST()