Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(751)

Unified Diff: mojo/runner/linux_sandbox.cc

Issue 1264463005: mandoline sandbox: prewarm libraries before we raise the sandbox. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: And Android, too! Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« mojo/runner/child_process.cc ('K') | « mojo/runner/linux_sandbox.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/runner/linux_sandbox.cc
diff --git a/mandoline/app/desktop/linux_sandbox.cc b/mojo/runner/linux_sandbox.cc
similarity index 89%
rename from mandoline/app/desktop/linux_sandbox.cc
rename to mojo/runner/linux_sandbox.cc
index 732a99e953a812f4300cc549f58f282b138f97d8..db6dfcf25bf7dfd93cc87ef6cc742eab8a41c6e9 100644
--- a/mandoline/app/desktop/linux_sandbox.cc
+++ b/mojo/runner/linux_sandbox.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "mandoline/app/desktop/linux_sandbox.h"
+#include "mojo/runner/linux_sandbox.h"
#include <fcntl.h>
#include <sys/syscall.h>
@@ -98,16 +98,6 @@ LinuxSandbox::LinuxSandbox(const std::vector<BrokerFilePermission>& permissions)
LinuxSandbox::~LinuxSandbox() {}
-// static
-std::vector<BrokerFilePermission> LinuxSandbox::GetPermissions() {
- std::vector<BrokerFilePermission> permissions;
- permissions.push_back(BrokerFilePermission::ReadOnly("/dev/urandom"));
- permissions.push_back(BrokerFilePermission::ReadOnly("/etc/ld.so.cache"));
- permissions.push_back(BrokerFilePermission::ReadOnlyRecursive("/lib/"));
- permissions.push_back(BrokerFilePermission::ReadOnlyRecursive("/usr/lib/"));
- return permissions;
-}
-
void LinuxSandbox::Warmup() {
proc_fd_ = sandbox::ProcUtil::OpenProc();
warmed_up_ = true;
« mojo/runner/child_process.cc ('K') | « mojo/runner/linux_sandbox.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698