Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(274)

Side by Side Diff: chrome_elf/blacklist/blacklist.h

Issue 300933002: Finch Blacklist is now added to the Hardcoded blacklist. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Final changes? Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/browser/chrome_elf_init_win.cc ('k') | chrome_elf/blacklist/blacklist.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #ifndef CHROME_ELF_BLACKLIST_BLACKLIST_H_ 5 #ifndef CHROME_ELF_BLACKLIST_BLACKLIST_H_
6 #define CHROME_ELF_BLACKLIST_BLACKLIST_H_ 6 #define CHROME_ELF_BLACKLIST_BLACKLIST_H_
7 7
8 #if defined(_WIN64) 8 #if defined(_WIN64)
9 #include "sandbox/win/src/sandbox_nt_types.h" 9 #include "sandbox/win/src/sandbox_nt_types.h"
10 #endif 10 #endif
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 extern "C" bool RemoveDllFromBlacklist(const wchar_t* dll_name); 53 extern "C" bool RemoveDllFromBlacklist(const wchar_t* dll_name);
54 54
55 // Returns a list of all the dlls that have been successfully blocked by the 55 // Returns a list of all the dlls that have been successfully blocked by the
56 // blacklist via blocked_dlls, if there is enough space (according to |size|). 56 // blacklist via blocked_dlls, if there is enough space (according to |size|).
57 // |size| will always be modified to be the number of dlls that were blocked. 57 // |size| will always be modified to be the number of dlls that were blocked.
58 // The caller doesn't own the strings and isn't expected to free them. These 58 // The caller doesn't own the strings and isn't expected to free them. These
59 // strings won't be hanging unless RemoveDllFromBlacklist is called, but it 59 // strings won't be hanging unless RemoveDllFromBlacklist is called, but it
60 // is only exposed in tests (and should stay that way). 60 // is only exposed in tests (and should stay that way).
61 extern "C" void SuccessfullyBlocked(const wchar_t** blocked_dlls, int* size); 61 extern "C" void SuccessfullyBlocked(const wchar_t** blocked_dlls, int* size);
62 62
63 // Add the dlls, originally passed in through finch, from the registry to the
64 // blacklist so that they will be blocked identically to those hard coded in.
65 extern "C" bool AddDllsFromRegistryToBlacklist();
66
63 // Record that the dll at the given index was blocked. 67 // Record that the dll at the given index was blocked.
64 void BlockedDll(size_t blocked_index); 68 void BlockedDll(size_t blocked_index);
65 69
66 // Initializes the DLL blacklist in the current process. This should be called 70 // Initializes the DLL blacklist in the current process. This should be called
67 // before any undesirable DLLs might be loaded. If |force| is set to true, then 71 // before any undesirable DLLs might be loaded. If |force| is set to true, then
68 // initialization will take place even if a beacon is present. This is useful 72 // initialization will take place even if a beacon is present. This is useful
69 // for tests. 73 // for tests.
70 bool Initialize(bool force); 74 bool Initialize(bool force);
71 75
72 } // namespace blacklist 76 } // namespace blacklist
73 77
74 #endif // CHROME_ELF_BLACKLIST_BLACKLIST_H_ 78 #endif // CHROME_ELF_BLACKLIST_BLACKLIST_H_
OLDNEW
« no previous file with comments | « chrome/browser/chrome_elf_init_win.cc ('k') | chrome_elf/blacklist/blacklist.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698