| 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 |
| 44 L"avgrsstx.dll", // AVG 8. | 45 L"avgrsstx.dll", // AVG 8. |
| 45 L"babylonchromepi.dll", // Babylon translator. | 46 L"babylonchromepi.dll", // Babylon translator. |
| 46 L"btkeyind.dll", // Widcomm Bluetooth. | 47 L"btkeyind.dll", // Widcomm Bluetooth. |
| 47 L"cmcsyshk.dll", // CMC Internet Security. | 48 L"cmcsyshk.dll", // CMC Internet Security. |
| 48 L"cmsetac.dll", // Unknown (suspected malware). | 49 L"cmsetac.dll", // Unknown (suspected malware). |
| 49 L"cooliris.dll", // CoolIris. | 50 L"cooliris.dll", // CoolIris. |
| 50 L"dockshellhook.dll", // Stardock Objectdock. | 51 L"dockshellhook.dll", // Stardock Objectdock. |
| 51 L"easyhook32.dll", // GDIPP and others. | 52 L"easyhook32.dll", // GDIPP and others. |
| 52 L"googledesktopnetwork3.dll", // Google Desktop Search v5. | 53 L"googledesktopnetwork3.dll", // Google Desktop Search v5. |
| 53 L"fwhook.dll", // PC Tools Firewall Plus. | 54 L"fwhook.dll", // PC Tools Firewall Plus. |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 L"rooksdol.dll", // Trustware Rapport. | 95 L"rooksdol.dll", // Trustware Rapport. |
| 95 L"rpchromebrowserrecordhelper.dll", // RealPlayer. | 96 L"rpchromebrowserrecordhelper.dll", // RealPlayer. |
| 96 L"r3hook.dll", // Kaspersky Internet Security. | 97 L"r3hook.dll", // Kaspersky Internet Security. |
| 97 L"sahook.dll", // McAfee Site Advisor. | 98 L"sahook.dll", // McAfee Site Advisor. |
| 98 L"sbrige.dll", // Unknown. | 99 L"sbrige.dll", // Unknown. |
| 99 L"sc2hook.dll", // Supercopier 2. | 100 L"sc2hook.dll", // Supercopier 2. |
| 100 L"sdhook32.dll", // Spybot - Search & Destroy Live Protection. | 101 L"sdhook32.dll", // Spybot - Search & Destroy Live Protection. |
| 101 L"sguard.dll", // Iolo (System Guard). | 102 L"sguard.dll", // Iolo (System Guard). |
| 102 L"smum32.dll", // Spyware Doctor version 6. | 103 L"smum32.dll", // Spyware Doctor version 6. |
| 103 L"smumhook.dll", // Spyware Doctor version 5. | 104 L"smumhook.dll", // Spyware Doctor version 5. |
| 105 L"snxhk.dll", // Avast! AV |
| 104 L"ssldivx.dll", // DivX. | 106 L"ssldivx.dll", // DivX. |
| 105 L"syncor11.dll", // SynthCore Midi interface. | 107 L"syncor11.dll", // SynthCore Midi interface. |
| 106 L"systools.dll", // Panda Antivirus. | 108 L"systools.dll", // Panda Antivirus. |
| 107 L"tfwah.dll", // Threatfire (PC tools). | 109 L"tfwah.dll", // Threatfire (PC tools). |
| 108 L"wblind.dll", // Stardock Object desktop. | 110 L"wblind.dll", // Stardock Object desktop. |
| 109 L"wbhelp.dll", // Stardock Object desktop. | 111 L"wbhelp.dll", // Stardock Object desktop. |
| 110 L"winstylerthemehelper.dll" // Tuneup utilities 2006. | 112 L"winstylerthemehelper.dll" // Tuneup utilities 2006. |
| 111 }; | 113 }; |
| 112 | 114 |
| 113 // The DLLs listed here are known (or under strong suspicion) of causing crashes | 115 // 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... |
| 850 return g_broker_services->AddTargetPeer(peer_process) == sandbox::SBOX_ALL_OK; | 852 return g_broker_services->AddTargetPeer(peer_process) == sandbox::SBOX_ALL_OK; |
| 851 } | 853 } |
| 852 | 854 |
| 853 base::ProcessHandle StartProcessWithAccess( | 855 base::ProcessHandle StartProcessWithAccess( |
| 854 CommandLine* cmd_line, | 856 CommandLine* cmd_line, |
| 855 const FilePath& exposed_dir) { | 857 const FilePath& exposed_dir) { |
| 856 return sandbox::StartProcessWithAccess(cmd_line, exposed_dir); | 858 return sandbox::StartProcessWithAccess(cmd_line, exposed_dir); |
| 857 } | 859 } |
| 858 | 860 |
| 859 } // namespace content | 861 } // namespace content |
| OLD | NEW |