Home
last modified time | relevance | path

Searched refs:ProcUtil (Results 1 – 8 of 8) sorted by relevance

/external/libchrome/sandbox/linux/services/
Dproc_util_unittest.cc16 TEST(ProcUtil, CountOpenFds) { in TEST() argument
19 int fd_count = ProcUtil::CountOpenFds(proc_fd.get()); in TEST()
22 EXPECT_EQ(fd_count + 1, ProcUtil::CountOpenFds(proc_fd.get())); in TEST()
24 EXPECT_EQ(fd_count, ProcUtil::CountOpenFds(proc_fd.get())); in TEST()
27 TEST(ProcUtil, HasOpenDirectory) { in TEST() argument
29 EXPECT_FALSE(ProcUtil::HasOpenDirectory()); in TEST()
34 EXPECT_TRUE(ProcUtil::HasOpenDirectory()); in TEST()
36 EXPECT_FALSE(ProcUtil::HasOpenDirectory()); in TEST()
39 TEST(ProcUtil, HasOpenDirectoryWithFD) { in TEST() argument
46 EXPECT_TRUE(ProcUtil::HasOpenDirectory()); in TEST()
[all …]
Dproc_util.cc42 int ProcUtil::CountOpenFds(int proc_fd) { in CountOpenFds()
72 bool ProcUtil::HasOpenDirectory(int proc_fd) { in HasOpenDirectory()
109 bool ProcUtil::HasOpenDirectory() { in HasOpenDirectory()
116 base::ScopedFD ProcUtil::OpenProc() { in OpenProc()
Dcredentials_unittest.cc151 CHECK(Credentials::DropFileSystemAccess(ProcUtil::OpenProc().get())); in SANDBOX_TEST()
163 base::ScopedFD proc_fd(ProcUtil::OpenProc()); in SANDBOX_TEST()
181 base::ScopedFD proc_fd(ProcUtil::OpenProc()); in SANDBOX_TEST()
203 base::ScopedFD proc_fd(ProcUtil::OpenProc()); in SANDBOX_TEST()
222 base::ScopedFD proc_fd(ProcUtil::OpenProc()); in SANDBOX_TEST()
252 CHECK(Credentials::DropFileSystemAccess(ProcUtil::OpenProc().get())); in SANDBOX_TEST()
Dproc_util.h14 class SANDBOX_EXPORT ProcUtil {
37 DISALLOW_IMPLICIT_CONSTRUCTORS(ProcUtil);
Dthread_helpers.cc167 base::ScopedFD task_fd(ProcUtil::OpenProc()); in IsSingleThreaded()
179 base::ScopedFD task_fd(ProcUtil::OpenProc()); in AssertSingleThreaded()
Dcredentials.cc167 base::ScopedFD proc_fd(ProcUtil::OpenProc()); in DropAllCapabilities()
319 CHECK(!ProcUtil::HasOpenDirectory(proc_fd)); in DropFileSystemAccess()
Dnamespace_sandbox_unittest.cc115 CHECK(sandbox::Credentials::DropFileSystemAccess(ProcUtil::OpenProc().get())); in MULTIPROCESS_TEST_MAIN()
/external/libchrome/sandbox/linux/seccomp-bpf/
Dsandbox_bpf.cc161 SetProcFd(ProcUtil::OpenProc()); in StartSandbox()