diff options
author | cpu@google.com <cpu@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-09-22 17:11:04 +0000 |
---|---|---|
committer | cpu@google.com <cpu@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-09-22 17:11:04 +0000 |
commit | 0f8a6b4de386b469859f6cd12c0ba091453c9a4d (patch) | |
tree | 3d1b0af7d6cbd80872d1178b6f2d62a20a24e9f6 /chrome/browser/sandbox_policy.h | |
parent | 9bbb0b88f274f767358644dd97b1ee0c9604010b (diff) | |
download | chromium_src-0f8a6b4de386b469859f6cd12c0ba091453c9a4d.zip chromium_src-0f8a6b4de386b469859f6cd12c0ba091453c9a4d.tar.gz chromium_src-0f8a6b4de386b469859f6cd12c0ba091453c9a4d.tar.bz2 |
Use the new dll injection blocking api of the sandbox to block
the loading of dlls that cause renderer crashes.
- Remove the old FreeLibrary() method
Review URL: http://codereview.chromium.org/2458
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2441 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/sandbox_policy.h')
-rw-r--r-- | chrome/browser/sandbox_policy.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/chrome/browser/sandbox_policy.h b/chrome/browser/sandbox_policy.h index 1a1a794..b32e5d8 100644 --- a/chrome/browser/sandbox_policy.h +++ b/chrome/browser/sandbox_policy.h @@ -2,8 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#ifndef CHROME_BROWSER_SANDBOX_POLICY_H__ -#define CHROME_BROWSER_SANDBOX_POLICY_H__ +#ifndef CHROME_BROWSER_SANDBOX_POLICY_H_ +#define CHROME_BROWSER_SANDBOX_POLICY_H_ #include <string> #include "sandbox/src/sandbox.h" @@ -12,6 +12,9 @@ // Adds the generic policy rules to a sandbox TargetPolicy. bool AddGenericPolicy(sandbox::TargetPolicy* policy); +// Adds policy rules for unloaded the known dlls that cause chrome to crash. +bool AddDllEvictionPolicy(sandbox::TargetPolicy* policy); + // Adds the custom policy rules for a given plugin. If dll is activex-shim, // then clsid is the clsid of ActiveX control. Otherwise clsid is ignored. // |trusted_plugins| contains the comma separate list of plugins that should @@ -41,5 +44,5 @@ bool ApplyPolicyForTrustedPlugin(sandbox::TargetPolicy* policy); // is disabled. bool ApplyPolicyForUntrustedPlugin(sandbox::TargetPolicy* policy); -#endif // CHROME_BROWSER_SANDBOX_POLICY_H__ +#endif // CHROME_BROWSER_SANDBOX_POLICY_H_ |