/external/libchrome/sandbox/linux/services/ |
D | scoped_process.cc | 38 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()
|
D | credentials_unittest.cc | 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() [all …]
|
D | credentials.cc | 47 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 …]
|
D | proc_util.cc | 25 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()
|
D | namespace_sandbox_unittest.cc | 168 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()
|
D | thread_helpers.cc | 41 PCHECK(0 == fstat_ret); in IsSingleThreadedImpl() 57 PCHECK(ENOENT == errno); in IsThreadPresentInProcFS() 100 PCHECK(0 == HANDLE_EINTR(nanosleep(&ts, &ts))); in RunWhileTrue()
|
D | scoped_process_unittest.cc | 35 PCHECK(0 == raise(signal)); in RaiseAndExit() 57 PCHECK(SIG_ERR != signal(SIGABRT, SIG_DFL)); in TEST()
|
D | yama_unittests.cc | 53 PCHECK(0 == wait_ret); in CanPtrace() 54 PCHECK(0 == ptrace(PTRACE_DETACH, pid, NULL, NULL)); in CanPtrace()
|
D | namespace_sandbox.cc | 203 PCHECK(sys_sigaction(sig, nullptr, &old_action) == 0); in InstallTerminationSignalHandler() 226 PCHECK(sys_sigaction(sig, &action, nullptr) == 0); in InstallTerminationSignalHandler()
|
D | yama.cc | 94 PCHECK(1 == num_read); in GetStatus()
|
D | thread_helpers_unittests.cc | 48 ~ScopedProc() { PCHECK(0 == IGNORE_EINTR(close(fd_))); } in ~ScopedProc()
|
/external/libchrome/base/files/ |
D | dir_reader_posix_unittest.cc | 38 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()
|
D | scoped_file.cc | 30 PCHECK(0 == IGNORE_EINTR(close(fd))); in Free()
|
/external/libchrome/sandbox/linux/syscall_broker/ |
D | broker_channel.cc | 24 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()
|
D | broker_process.cc | 53 PCHECK(0 == kill(broker_pid_, SIGKILL)); in ~BrokerProcess() 57 PCHECK(0 == ret); in ~BrokerProcess()
|
D | broker_process_unittest.cc | 555 PCHECK(0 == IGNORE_EINTR(close(fd))); in CloseFD() 579 PCHECK(0 == pipe(lifeline_fds)); in TEST()
|
/external/libchrome/sandbox/linux/seccomp-bpf-helpers/ |
D | baseline_policy_unittest.cc | 344 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/ |
D | process_reaper_unittest.cc | 23 PCHECK(pid != -1); in ForkChildAndExit() 32 PCHECK(pid != -1); in ForkChildAndKill()
|
/external/libchrome/base/ |
D | logging.h | 496 #define PCHECK(condition) CHECK(condition) macro 515 #define PCHECK(condition) \ macro 527 #define PCHECK(condition) \ macro
|
D | logging_unittest.cc | 184 PCHECK(!mock_log_source.Log()) << mock_log_source.Log(); in TEST_F()
|
/external/libweave/third_party/chromium/base/ |
D | logging.h | 401 #define PCHECK(condition) CHECK(condition) macro
|