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

Side by Side Diff: sandbox/win/src/process_mitigations_win32k_policy.cc

Issue 333773005: Intercept the user32!SystemParametersInfoW API in the win32k user gdi lockdown mode (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "sandbox/win/src/process_mitigations_win32k_policy.h" 5 #include "sandbox/win/src/process_mitigations_win32k_policy.h"
6 6
7 namespace sandbox { 7 namespace sandbox {
8 8
9 bool ProcessMitigationsWin32KLockdownPolicy::GenerateRules( 9 bool ProcessMitigationsWin32KLockdownPolicy::GenerateRules(
10 const wchar_t* name, 10 const wchar_t* name,
11 TargetPolicy::Semantics semantics, 11 TargetPolicy::Semantics semantics,
12 LowLevelPolicy* policy) { 12 LowLevelPolicy* policy) {
13 PolicyRule rule(FAKE_SUCCESS); 13 PolicyRule rule(FAKE_SUCCESS);
14 if (!policy->AddRule(IPC_GDI_GDIDLLINITIALIZE_TAG, &rule)) 14 if (!policy->AddRule(IPC_GDI_GDIDLLINITIALIZE_TAG, &rule))
15 return false; 15 return false;
16 if (!policy->AddRule(IPC_GDI_GETSTOCKOBJECT_TAG, &rule)) 16 if (!policy->AddRule(IPC_GDI_GETSTOCKOBJECT_TAG, &rule))
17 return false; 17 return false;
18 if (!policy->AddRule(IPC_USER_REGISTERCLASSW_TAG, &rule)) 18 if (!policy->AddRule(IPC_USER_REGISTERCLASSW_TAG, &rule))
19 return false; 19 return false;
20 if (!policy->AddRule(IPC_USER_SYSTEMPARAMETERSINFOW_TAG, &rule))
21 return false;
20 return true; 22 return true;
21 } 23 }
22 24
23 } // namespace sandbox 25 } // namespace sandbox
24 26
OLDNEW
« no previous file with comments | « sandbox/win/src/process_mitigations_win32k_interception.cc ('k') | sandbox/win/src/sandbox_policy_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698