diff options
Diffstat (limited to 'sandbox/win/src/sandbox.cc')
-rw-r--r-- | sandbox/win/src/sandbox.cc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sandbox/win/src/sandbox.cc b/sandbox/win/src/sandbox.cc index d26daa4..984dfec 100644 --- a/sandbox/win/src/sandbox.cc +++ b/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; +} |