OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "content/common/sandbox_policy.h" | 5 #include "content/common/sandbox_policy.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/debug/debugger.h" | 10 #include "base/debug/debugger.h" |
(...skipping 23 matching lines...) Expand all Loading... |
34 static sandbox::TargetServices* g_target_services = NULL; | 34 static sandbox::TargetServices* g_target_services = NULL; |
35 | 35 |
36 namespace { | 36 namespace { |
37 | 37 |
38 // The DLLs listed here are known (or under strong suspicion) of causing crashes | 38 // The DLLs listed here are known (or under strong suspicion) of causing crashes |
39 // when they are loaded in the renderer. Note: at runtime we generate short | 39 // when they are loaded in the renderer. Note: at runtime we generate short |
40 // versions of the dll name only if the dll has an extension. | 40 // versions of the dll name only if the dll has an extension. |
41 const wchar_t* const kTroublesomeDlls[] = { | 41 const wchar_t* const kTroublesomeDlls[] = { |
42 L"adialhk.dll", // Kaspersky Internet Security. | 42 L"adialhk.dll", // Kaspersky Internet Security. |
43 L"acpiz.dll", // Unknown. | 43 L"acpiz.dll", // Unknown. |
44 L"aswjsflt.dll", // Avast! AV | |
45 L"avgrsstx.dll", // AVG 8. | 44 L"avgrsstx.dll", // AVG 8. |
46 L"babylonchromepi.dll", // Babylon translator. | 45 L"babylonchromepi.dll", // Babylon translator. |
47 L"btkeyind.dll", // Widcomm Bluetooth. | 46 L"btkeyind.dll", // Widcomm Bluetooth. |
48 L"cmcsyshk.dll", // CMC Internet Security. | 47 L"cmcsyshk.dll", // CMC Internet Security. |
49 L"cmsetac.dll", // Unknown (suspected malware). | 48 L"cmsetac.dll", // Unknown (suspected malware). |
50 L"cooliris.dll", // CoolIris. | 49 L"cooliris.dll", // CoolIris. |
51 L"dockshellhook.dll", // Stardock Objectdock. | 50 L"dockshellhook.dll", // Stardock Objectdock. |
52 L"easyhook32.dll", // GDIPP and others. | 51 L"easyhook32.dll", // GDIPP and others. |
53 L"googledesktopnetwork3.dll", // Google Desktop Search v5. | 52 L"googledesktopnetwork3.dll", // Google Desktop Search v5. |
54 L"fwhook.dll", // PC Tools Firewall Plus. | 53 L"fwhook.dll", // PC Tools Firewall Plus. |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 L"rooksdol.dll", // Trustware Rapport. | 94 L"rooksdol.dll", // Trustware Rapport. |
96 L"rpchromebrowserrecordhelper.dll", // RealPlayer. | 95 L"rpchromebrowserrecordhelper.dll", // RealPlayer. |
97 L"r3hook.dll", // Kaspersky Internet Security. | 96 L"r3hook.dll", // Kaspersky Internet Security. |
98 L"sahook.dll", // McAfee Site Advisor. | 97 L"sahook.dll", // McAfee Site Advisor. |
99 L"sbrige.dll", // Unknown. | 98 L"sbrige.dll", // Unknown. |
100 L"sc2hook.dll", // Supercopier 2. | 99 L"sc2hook.dll", // Supercopier 2. |
101 L"sdhook32.dll", // Spybot - Search & Destroy Live Protection. | 100 L"sdhook32.dll", // Spybot - Search & Destroy Live Protection. |
102 L"sguard.dll", // Iolo (System Guard). | 101 L"sguard.dll", // Iolo (System Guard). |
103 L"smum32.dll", // Spyware Doctor version 6. | 102 L"smum32.dll", // Spyware Doctor version 6. |
104 L"smumhook.dll", // Spyware Doctor version 5. | 103 L"smumhook.dll", // Spyware Doctor version 5. |
105 L"snxhk.dll", // Avast! AV | |
106 L"ssldivx.dll", // DivX. | 104 L"ssldivx.dll", // DivX. |
107 L"syncor11.dll", // SynthCore Midi interface. | 105 L"syncor11.dll", // SynthCore Midi interface. |
108 L"systools.dll", // Panda Antivirus. | 106 L"systools.dll", // Panda Antivirus. |
109 L"tfwah.dll", // Threatfire (PC tools). | 107 L"tfwah.dll", // Threatfire (PC tools). |
110 L"wblind.dll", // Stardock Object desktop. | 108 L"wblind.dll", // Stardock Object desktop. |
111 L"wbhelp.dll", // Stardock Object desktop. | 109 L"wbhelp.dll", // Stardock Object desktop. |
112 L"winstylerthemehelper.dll" // Tuneup utilities 2006. | 110 L"winstylerthemehelper.dll" // Tuneup utilities 2006. |
113 }; | 111 }; |
114 | 112 |
115 // The DLLs listed here are known (or under strong suspicion) of causing crashes | 113 // The DLLs listed here are known (or under strong suspicion) of causing crashes |
(...skipping 736 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
852 return g_broker_services->AddTargetPeer(peer_process) == sandbox::SBOX_ALL_OK; | 850 return g_broker_services->AddTargetPeer(peer_process) == sandbox::SBOX_ALL_OK; |
853 } | 851 } |
854 | 852 |
855 base::ProcessHandle StartProcessWithAccess( | 853 base::ProcessHandle StartProcessWithAccess( |
856 CommandLine* cmd_line, | 854 CommandLine* cmd_line, |
857 const FilePath& exposed_dir) { | 855 const FilePath& exposed_dir) { |
858 return sandbox::StartProcessWithAccess(cmd_line, exposed_dir); | 856 return sandbox::StartProcessWithAccess(cmd_line, exposed_dir); |
859 } | 857 } |
860 | 858 |
861 } // namespace content | 859 } // namespace content |
OLD | NEW |