HomeSort by relevance Sort by last modified time
    Searched refs:proc_fd (Results 1 - 5 of 5) sorted by null

  /external/chromium_org/sandbox/linux/seccomp-bpf/
bpf_tests.h 84 int proc_fd; local
85 BPF_ASSERT((proc_fd = open("/proc", O_RDONLY|O_DIRECTORY)) >= 0);
86 BPF_ASSERT(playground2::Sandbox::SupportsSeccompSandbox(proc_fd) ==
91 sandbox.set_proc_fd(proc_fd);
sandbox_bpf.h 89 // "proc_fd" should be a file descriptor for "/proc", or -1 if not
91 static SandboxStatus SupportsSeccompSandbox(int proc_fd);
98 void set_proc_fd(int proc_fd);
208 int proc_fd() { return proc_fd_; } function in class:playground2::Sandbox
sandbox_bpf.cc 104 bool IsSingleThreaded(int proc_fd) {
105 if (proc_fd < 0) {
113 if ((task = openat(proc_fd, "self/task", O_RDONLY|O_DIRECTORY)) < 0 ||
367 Sandbox::SandboxStatus Sandbox::SupportsSeccompSandbox(int proc_fd) {
377 if (!IsSingleThreaded(proc_fd)) {
383 if (status_ == STATUS_UNAVAILABLE && IsSingleThreaded(proc_fd)) {
407 sandbox.set_proc_fd(proc_fd);
415 if (status_ == STATUS_AVAILABLE && !IsSingleThreaded(proc_fd)) {
422 void Sandbox::set_proc_fd(int proc_fd) {
423 proc_fd_ = proc_fd;
    [all...]
demo.cc 413 int proc_fd = open("/proc", O_RDONLY|O_DIRECTORY); local
414 if (Sandbox::SupportsSeccompSandbox(proc_fd) !=
420 sandbox.set_proc_fd(proc_fd);
  /external/chromium_org/chrome/nacl/
nacl_helper_linux.cc 132 int proc_fd = open("/proc/self/exe", O_RDONLY); local
133 if (proc_fd >= 0) {
134 HANDLE_EINTR(close(proc_fd));

Completed in 673 milliseconds