/external/chromium_org/components/nacl/loader/sandbox_linux/ |
nacl_sandbox_linux.cc | 49 proc_fd_(-1), 51 proc_fd_.reset( 53 PCHECK(proc_fd_.is_valid()); 60 CHECK(proc_fd_.is_valid()); 62 proc_fd_.get(), "self/task/", O_RDONLY | O_DIRECTORY | O_CLOEXEC))); 68 CHECK(proc_fd_.is_valid()); 70 return credentials.HasOpenDirectory(proc_fd_.get()); 106 CHECK_EQ(7, credentials.CountOpenFds(proc_fd_.get())); 131 proc_fd_.reset();
|
nacl_sandbox_linux.h | 75 // |proc_fd_| must be released before the layer-1 sandbox is considered 77 base::ScopedFD proc_fd_; member in class:nacl::NaClSandbox
|
/external/chromium_org/content/common/sandbox_linux/ |
sandbox_linux.cc | 108 : proc_fd_(-1), 152 // Open proc_fd_ only in Debug mode so that forgetting to close it doesn't 154 proc_fd_ = open("/proc", O_DIRECTORY | O_RDONLY | O_CLOEXEC); 155 CHECK_GE(proc_fd_, 0); 217 base::ScopedFD proc_self_task(OpenProcTaskFd(proc_fd_)); 231 // setuid sandbox is already engaged but no proc_fd_ is available). 381 return sandbox::Credentials().HasOpenDirectory(proc_fd_); 385 if (proc_fd_ >= 0) { 386 int ret = IGNORE_EINTR(close(proc_fd_)); 388 proc_fd_ = -1 [all...] |
sandbox_linux.h | 114 // in the sandbox is closed. For now, this consists of closing proc_fd_. 126 int proc_fd_; member in class:content::LinuxSandbox
|
/external/chromium_org/sandbox/linux/seccomp-bpf/ |
sandbox_bpf.h | 209 int proc_fd() { return proc_fd_; } 302 int proc_fd_; member in class:sandbox::SandboxBPF
|
sandbox_bpf.cc | 282 proc_fd_(-1), 327 DCHECK(IsSingleThreaded(proc_fd_)); 508 void SandboxBPF::set_proc_fd(int proc_fd) { proc_fd_ = proc_fd; } 525 if (proc_fd_ < 0) { 526 proc_fd_ = open("/proc", O_RDONLY | O_DIRECTORY); 528 if (proc_fd_ < 0) { 537 if (!IsSingleThreaded(proc_fd_)) { 542 if (IsSingleThreaded(proc_fd_)) { 557 if (proc_fd_ >= 0) { 558 if (IGNORE_EINTR(close(proc_fd_))) { [all...] |