OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/common/sandbox_policy.h" | 5 #include "chrome/common/sandbox_policy.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "app/win/win_util.h" | 9 #include "app/win/win_util.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 17 matching lines...) Expand all Loading... |
28 static sandbox::BrokerServices* g_broker_services = NULL; | 28 static sandbox::BrokerServices* g_broker_services = NULL; |
29 | 29 |
30 namespace { | 30 namespace { |
31 | 31 |
32 // The DLLs listed here are known (or under strong suspicion) of causing crashes | 32 // The DLLs listed here are known (or under strong suspicion) of causing crashes |
33 // when they are loaded in the renderer. | 33 // when they are loaded in the renderer. |
34 const wchar_t* const kTroublesomeDlls[] = { | 34 const wchar_t* const kTroublesomeDlls[] = { |
35 L"adialhk.dll", // Kaspersky Internet Security. | 35 L"adialhk.dll", // Kaspersky Internet Security. |
36 L"acpiz.dll", // Unknown. | 36 L"acpiz.dll", // Unknown. |
37 L"avgrsstx.dll", // AVG 8. | 37 L"avgrsstx.dll", // AVG 8. |
| 38 L"BabylonChromePI.dll", // Babylon translator. |
38 L"btkeyind.dll", // Widcomm Bluetooth. | 39 L"btkeyind.dll", // Widcomm Bluetooth. |
39 L"cmcsyshk.dll", // CMC Internet Security. | 40 L"cmcsyshk.dll", // CMC Internet Security. |
40 L"dockshellhook.dll", // Stardock Objectdock. | 41 L"dockshellhook.dll", // Stardock Objectdock. |
41 L"GoogleDesktopNetwork3.DLL", // Google Desktop Search v5. | 42 L"GoogleDesktopNetwork3.DLL", // Google Desktop Search v5. |
42 L"fwhook.dll", // PC Tools Firewall Plus. | 43 L"fwhook.dll", // PC Tools Firewall Plus. |
43 L"hookprocesscreation.dll", // Blumentals Program protector. | 44 L"hookprocesscreation.dll", // Blumentals Program protector. |
44 L"hookterminateapis.dll", // Blumentals and Cyberprinter. | 45 L"hookterminateapis.dll", // Blumentals and Cyberprinter. |
45 L"hookprintapis.dll", // Cyberprinter. | 46 L"hookprintapis.dll", // Cyberprinter. |
46 L"imon.dll", // NOD32 Antivirus. | 47 L"imon.dll", // NOD32 Antivirus. |
47 L"ioloHL.dll", // Iolo (System Mechanic). | 48 L"ioloHL.dll", // Iolo (System Mechanic). |
(...skipping 21 matching lines...) Expand all Loading... |
69 L"sahook.dll", // McAfee Site Advisor. | 70 L"sahook.dll", // McAfee Site Advisor. |
70 L"sbrige.dll", // Unknown. | 71 L"sbrige.dll", // Unknown. |
71 L"sc2hook.dll", // Supercopier 2. | 72 L"sc2hook.dll", // Supercopier 2. |
72 L"sguard.dll", // Iolo (System Guard). | 73 L"sguard.dll", // Iolo (System Guard). |
73 L"smum32.dll", // Spyware Doctor version 6. | 74 L"smum32.dll", // Spyware Doctor version 6. |
74 L"smumhook.dll", // Spyware Doctor version 5. | 75 L"smumhook.dll", // Spyware Doctor version 5. |
75 L"ssldivx.dll", // DivX. | 76 L"ssldivx.dll", // DivX. |
76 L"syncor11.dll", // SynthCore Midi interface. | 77 L"syncor11.dll", // SynthCore Midi interface. |
77 L"systools.dll", // Panda Antivirus. | 78 L"systools.dll", // Panda Antivirus. |
78 L"tfwah.dll", // Threatfire (PC tools). | 79 L"tfwah.dll", // Threatfire (PC tools). |
| 80 L"YCWebCameraSource.ax", // Cyberlink Camera helper. |
79 L"wblind.dll", // Stardock Object desktop. | 81 L"wblind.dll", // Stardock Object desktop. |
80 L"wbhelp.dll", // Stardock Object desktop. | 82 L"wbhelp.dll", // Stardock Object desktop. |
81 L"winstylerthemehelper.dll" // Tuneup utilities 2006. | 83 L"winstylerthemehelper.dll" // Tuneup utilities 2006. |
82 }; | 84 }; |
83 | 85 |
84 enum PluginPolicyCategory { | 86 enum PluginPolicyCategory { |
85 PLUGIN_GROUP_TRUSTED, | 87 PLUGIN_GROUP_TRUSTED, |
86 PLUGIN_GROUP_UNTRUSTED, | 88 PLUGIN_GROUP_UNTRUSTED, |
87 }; | 89 }; |
88 | 90 |
(...skipping 559 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
648 | 650 |
649 // Help the process a little. It can't start the debugger by itself if | 651 // Help the process a little. It can't start the debugger by itself if |
650 // the process is in a sandbox. | 652 // the process is in a sandbox. |
651 if (child_needs_help) | 653 if (child_needs_help) |
652 base::debug::SpawnDebuggerOnProcess(target.dwProcessId); | 654 base::debug::SpawnDebuggerOnProcess(target.dwProcessId); |
653 | 655 |
654 return process; | 656 return process; |
655 } | 657 } |
656 | 658 |
657 } // namespace sandbox | 659 } // namespace sandbox |
OLD | NEW |