summaryrefslogtreecommitdiffstats
path: root/chromium/sandbox/win/src/sandbox.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/sandbox/win/src/sandbox.cc')
-rw-r--r--chromium/sandbox/win/src/sandbox.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/chromium/sandbox/win/src/sandbox.cc b/chromium/sandbox/win/src/sandbox.cc
index d26daa434e9..984dfecec8a 100644
--- a/chromium/sandbox/win/src/sandbox.cc
+++ b/chromium/sandbox/win/src/sandbox.cc
@@ -12,8 +12,7 @@
namespace sandbox {
// The section for IPC and policy.
SANDBOX_INTERCEPT HANDLE g_shared_section;
-
-static bool s_is_broker = false;
+static bool s_is_broker = false;
// GetBrokerServices: the current implementation relies on a shared section
// that is created by the broker and opened by the target.
@@ -42,3 +41,8 @@ TargetServices* SandboxFactory::GetTargetServices() {
}
} // namespace sandbox
+
+// Allows querying for whether the current process has been sandboxed.
+extern "C" bool __declspec(dllexport) IsSandboxedProcess() {
+ return sandbox::g_shared_section != NULL;
+}