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

Unified Diff: content/common/sandbox_linux/bpf_gpu_policy_linux.h

Issue 721553002: sandbox: Extend BrokerPolicy to support file creation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove serialization Created 6 years, 1 month 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
Index: content/common/sandbox_linux/bpf_gpu_policy_linux.h
diff --git a/content/common/sandbox_linux/bpf_gpu_policy_linux.h b/content/common/sandbox_linux/bpf_gpu_policy_linux.h
index 3b60ffe66fbe16021c3a871f2888e941127ec7e7..cc66c5bc96f8768a4eeff4e622c6a34348ebd3a9 100644
--- a/content/common/sandbox_linux/bpf_gpu_policy_linux.h
+++ b/content/common/sandbox_linux/bpf_gpu_policy_linux.h
@@ -13,6 +13,7 @@
namespace sandbox {
namespace syscall_broker {
+class BrokerFilePermission;
class BrokerProcess;
}
}
@@ -34,13 +35,13 @@ class GpuProcessPolicy : public SandboxBPFBasePolicy {
// Start a broker process to handle open() inside the sandbox.
// |broker_sandboxer_allocator| is a function pointer which can allocate a
// suitable sandbox policy for the broker process itself.
- // |read_whitelist_extra| and |write_whitelist_extra| are lists of file
- // names that should be whitelisted by the broker process, in addition to
+ // |permissions_extra| is a list of file permissions
+ // that should be whitelisted by the broker process, in addition to
// the basic ones.
void InitGpuBrokerProcess(
sandbox::bpf_dsl::Policy* (*broker_sandboxer_allocator)(void),
- const std::vector<std::string>& read_whitelist_extra,
- const std::vector<std::string>& write_whitelist_extra);
+ const std::vector<sandbox::syscall_broker::BrokerFilePermission>&
+ permissions_extra);
sandbox::syscall_broker::BrokerProcess* broker_process() {
return broker_process_;

Powered by Google App Engine
This is Rietveld 408576698