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

Unified Diff: sandbox/win/src/sandbox_policy_base.cc

Issue 1856993003: Implement sandbox hooks to forward OPM related GDI system calls. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Replaced shared memory implementation. Created 4 years, 8 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
Index: sandbox/win/src/sandbox_policy_base.cc
diff --git a/sandbox/win/src/sandbox_policy_base.cc b/sandbox/win/src/sandbox_policy_base.cc
index a3af98d3bbbd01a85801c70f21e1c2de9df1e491..59b9c763a112c1ed71f55d74c04e2b5e77bead80 100644
--- a/sandbox/win/src/sandbox_policy_base.cc
+++ b/sandbox/win/src/sandbox_policy_base.cc
@@ -137,7 +137,8 @@ PolicyBase::PolicyBase()
policy_maker_(NULL),
policy_(NULL),
lowbox_sid_(NULL),
- lockdown_default_dacl_(false) {
+ lockdown_default_dacl_(false),
+ enable_opm_redirection_(false) {
::InitializeCriticalSection(&lock_);
dispatcher_.reset(new TopLevelDispatcher(this));
}
@@ -663,6 +664,14 @@ HANDLE PolicyBase::GetStderrHandle() {
return stderr_handle_;
}
+void PolicyBase::SetEnableOPMRedirection() {
+ enable_opm_redirection_ = true;
+}
+
+bool PolicyBase::GetEnableOPMRedirection() {
+ return enable_opm_redirection_;
+}
+
bool PolicyBase::SetupAllInterceptions(TargetProcess* target) {
InterceptionManager manager(target, relaxed_interceptions_);

Powered by Google App Engine
This is Rietveld 408576698