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

Unified Diff: sandbox/linux/services/broker_process.h

Issue 11569028: Linux Sandbox: Basic support for GPU broker. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address a few nits. Created 8 years 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
« no previous file with comments | « content/common/sandbox_seccomp_bpf_linux.cc ('k') | sandbox/linux/services/broker_process.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sandbox/linux/services/broker_process.h
diff --git a/sandbox/linux/services/broker_process.h b/sandbox/linux/services/broker_process.h
index 84982399c5e425f6b284a51704274f87731b24cb..d04f703191bdff2c98d56d701a09a7566b43aa2c 100644
--- a/sandbox/linux/services/broker_process.h
+++ b/sandbox/linux/services/broker_process.h
@@ -20,7 +20,7 @@ namespace sandbox {
// signal handler.
// A process would typically create a broker process before entering
// sandboxing.
-// 1. BrokerProcess open_broker(file_whitelist);
+// 1. BrokerProcess open_broker(read_whitelist, write_whitelist);
// 2. CHECK(open_broker.Init(NULL));
// 3. Enable sandbox.
// 4. Use open_broker.Open() to open files.
@@ -37,8 +37,9 @@ class BrokerProcess {
~BrokerProcess();
// Will initialize the broker process. There should be no threads at this
// point, since we need to fork().
- // sandbox_callback should be NULL as this feature is not implemented yet.
- bool Init(void* sandbox_callback);
+ // sandbox_callback is a function that should be called to enable the
+ // sandbox in the broker.
+ bool Init(bool (*sandbox_callback)(void));
// Can be used in place of open(). Will be async signal safe.
// The implementation only supports certain white listed flags and will
« no previous file with comments | « content/common/sandbox_seccomp_bpf_linux.cc ('k') | sandbox/linux/services/broker_process.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698