OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_elf/blacklist/blacklist.h" | 5 #include "chrome_elf/blacklist/blacklist.h" |
6 | 6 |
7 #include <assert.h> | 7 #include <assert.h> |
8 #include <string.h> | 8 #include <string.h> |
9 | 9 |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
| 12 #include "chrome/install_static/install_util.h" |
12 #include "chrome_elf/blacklist/blacklist_interceptions.h" | 13 #include "chrome_elf/blacklist/blacklist_interceptions.h" |
13 #include "chrome_elf/chrome_elf_constants.h" | 14 #include "chrome_elf/chrome_elf_constants.h" |
14 #include "chrome_elf/chrome_elf_util.h" | |
15 #include "chrome_elf/thunk_getter.h" | 15 #include "chrome_elf/thunk_getter.h" |
16 #include "sandbox/win/src/interception_internal.h" | 16 #include "sandbox/win/src/interception_internal.h" |
17 #include "sandbox/win/src/internal_types.h" | 17 #include "sandbox/win/src/internal_types.h" |
18 #include "sandbox/win/src/service_resolver.h" | 18 #include "sandbox/win/src/service_resolver.h" |
19 | 19 |
20 // http://blogs.msdn.com/oldnewthing/archive/2004/10/25/247180.aspx | 20 // http://blogs.msdn.com/oldnewthing/archive/2004/10/25/247180.aspx |
21 extern "C" IMAGE_DOS_HEADER __ImageBase; | 21 extern "C" IMAGE_DOS_HEADER __ImageBase; |
22 | 22 |
23 namespace blacklist{ | 23 namespace blacklist{ |
24 | 24 |
(...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
448 break; | 448 break; |
449 value_buffer[value_len - 1] = L'\0'; | 449 value_buffer[value_len - 1] = L'\0'; |
450 AddDllToBlacklist(&value_buffer[0]); | 450 AddDllToBlacklist(&value_buffer[0]); |
451 } | 451 } |
452 | 452 |
453 ::RegCloseKey(key); | 453 ::RegCloseKey(key); |
454 return; | 454 return; |
455 } | 455 } |
456 | 456 |
457 } // namespace blacklist | 457 } // namespace blacklist |
OLD | NEW |