Home
last modified time | relevance | path

Searched refs:PCHECK (Results 1 – 21 of 21) sorted by relevance

/external/libchrome/sandbox/linux/services/
Dscoped_process.cc38 PCHECK(0 == pipe(pipe_fds_)); in ScopedProcess()
44 PCHECK(0 <= child_process_id_); in ScopedProcess()
47 PCHECK(0 == IGNORE_EINTR(close(pipe_fds_[0]))); in ScopedProcess()
57 PCHECK(0 == IGNORE_EINTR(close(pipe_fds_[1]))); in ScopedProcess()
64 PCHECK(0 == kill(child_process_id_, SIGKILL)); in ~ScopedProcess()
67 PCHECK(0 == HANDLE_EINTR( in ~ScopedProcess()
71 PCHECK(0 == IGNORE_EINTR(close(pipe_fds_[0]))); in ~ScopedProcess()
74 PCHECK(0 == IGNORE_EINTR(close(pipe_fds_[1]))); in ~ScopedProcess()
85 PCHECK(0 == ret) << "Did something else wait on the child?"; in WaitForExit()
102 PCHECK(ret >= 0); in WaitForClosureToRun()
Dcredentials_unittest.cc48 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()
[all …]
Dcredentials.cc47 PCHECK(sys_getresuid(&ruid, &euid, &suid) == 0); in GetRESIds()
48 PCHECK(sys_getresgid(&rgid, &egid, &sgid) == 0); in GetRESIds()
122 PCHECK(pid != -1); in ChrootToSafeEmptyDir()
125 PCHECK(HANDLE_EINTR(waitpid(pid, &status, 0)) == pid); in ChrootToSafeEmptyDir()
136 PCHECK(error == EPERM || error == EUSERS || error == EINVAL || in CheckCloneNewUserErrno()
215 PCHECK(sys_capget(&hdr, data) == 0); in HasAnyCapability()
231 PCHECK(sys_capget(&hdr, data) == 0); in HasCapability()
273 PCHECK(HANDLE_EINTR(waitpid(pid, &status, 0)) == pid); in CanCreateProcessInNewUserNS()
300 PCHECK(NamespaceUtils::DenySetgroups()); in MoveToNewUserNS()
308 PCHECK(NamespaceUtils::WriteToIdMapFile(kGidMapFile, gid)); in MoveToNewUserNS()
[all …]
Dproc_util.cc25 PCHECK(0 == closedir(d)); in operator ()()
35 PCHECK(directory_fd.is_valid()); in OpenDirectory()
45 PCHECK(0 <= proc_self_fd); in CountOpenFds()
76 PCHECK(0 <= proc_self_fd); in HasOpenDirectory()
Dnamespace_sandbox_unittest.cc168 PCHECK(waitpid(pid, &status, 0) == pid); in SANDBOX_TEST_ALLOW_NOISE()
191 PCHECK(waitpid(pid, &status, 0) == pid); in SANDBOX_TEST()
217 PCHECK(waitpid(pid, &status, 0) == pid); in SANDBOX_TEST()
230 PCHECK(sigaction(SIGUSR1, &action, nullptr) == 0); in SANDBOX_TEST()
Dthread_helpers.cc41 PCHECK(0 == fstat_ret); in IsSingleThreadedImpl()
57 PCHECK(ENOENT == errno); in IsThreadPresentInProcFS()
100 PCHECK(0 == HANDLE_EINTR(nanosleep(&ts, &ts))); in RunWhileTrue()
Dscoped_process_unittest.cc35 PCHECK(0 == raise(signal)); in RaiseAndExit()
57 PCHECK(SIG_ERR != signal(SIGABRT, SIG_DFL)); in TEST()
Dyama_unittests.cc53 PCHECK(0 == wait_ret); in CanPtrace()
54 PCHECK(0 == ptrace(PTRACE_DETACH, pid, NULL, NULL)); in CanPtrace()
Dnamespace_sandbox.cc203 PCHECK(sys_sigaction(sig, nullptr, &old_action) == 0); in InstallTerminationSignalHandler()
226 PCHECK(sys_sigaction(sig, &action, nullptr) == 0); in InstallTerminationSignalHandler()
Dyama.cc94 PCHECK(1 == num_read); in GetStatus()
Dthread_helpers_unittests.cc48 ~ScopedProc() { PCHECK(0 == IGNORE_EINTR(close(fd_))); } in ~ScopedProc()
/external/libchrome/base/files/
Ddir_reader_posix_unittest.cc38 PCHECK(chdir(dir) == 0); in TEST()
44 PCHECK(fd >= 0); in TEST()
45 PCHECK(close(fd) == 0); in TEST()
82 PCHECK(unlink(buf) == 0); in TEST()
85 PCHECK(rmdir(dir) == 0); in TEST()
87 PCHECK(fchdir(prev_wd) == 0); in TEST()
88 PCHECK(close(prev_wd) == 0); in TEST()
Dscoped_file.cc30 PCHECK(0 == IGNORE_EINTR(close(fd))); in Free()
/external/libchrome/sandbox/linux/syscall_broker/
Dbroker_channel.cc24 PCHECK(0 == socketpair(AF_UNIX, SOCK_SEQPACKET, 0, socket_pair)); in CreatePair()
27 PCHECK(0 == shutdown(reader->get(), SHUT_WR)); in CreatePair()
30 PCHECK(0 == shutdown(writer->get(), SHUT_RD)); in CreatePair()
Dbroker_process.cc53 PCHECK(0 == kill(broker_pid_, SIGKILL)); in ~BrokerProcess()
57 PCHECK(0 == ret); in ~BrokerProcess()
Dbroker_process_unittest.cc555 PCHECK(0 == IGNORE_EINTR(close(fd))); in CloseFD()
579 PCHECK(0 == pipe(lifeline_fds)); in TEST()
/external/libchrome/sandbox/linux/seccomp-bpf-helpers/
Dbaseline_policy_unittest.cc344 PCHECK(socketpair(AF_UNIX, SOCK_STREAM, 0, fds) == 0); in BPF_DEATH_TEST_C()
355 PCHECK(socketpair(AF_UNIX, SOCK_STREAM, 0, fds) == 0); in BPF_DEATH_TEST_C()
366 PCHECK(socketpair(AF_UNIX, SOCK_STREAM, 0, fds) == 0); in BPF_DEATH_TEST_C()
377 PCHECK(socketpair(AF_UNIX, SOCK_STREAM, 0, fds) == 0); in BPF_DEATH_TEST_C()
/external/libbrillo/brillo/
Dprocess_reaper_unittest.cc23 PCHECK(pid != -1); in ForkChildAndExit()
32 PCHECK(pid != -1); in ForkChildAndKill()
/external/libchrome/base/
Dlogging.h496 #define PCHECK(condition) CHECK(condition) macro
515 #define PCHECK(condition) \ macro
527 #define PCHECK(condition) \ macro
Dlogging_unittest.cc184 PCHECK(!mock_log_source.Log()) << mock_log_source.Log(); in TEST_F()
/external/libweave/third_party/chromium/base/
Dlogging.h401 #define PCHECK(condition) CHECK(condition) macro