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

Side by Side Diff: sandbox/win/src/filesystem_policy.h

Issue 432543005: Replace NT prefix in sandbox rules match string to handle correct wildcard escaping (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added missing include statement Created 6 years, 4 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
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 SANDBOX_SRC_FILESYSTEM_POLICY_H__ 5 #ifndef SANDBOX_SRC_FILESYSTEM_POLICY_H__
6 #define SANDBOX_SRC_FILESYSTEM_POLICY_H__ 6 #define SANDBOX_SRC_FILESYSTEM_POLICY_H__
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 uint32 info_class, 96 uint32 info_class,
97 IO_STATUS_BLOCK* io_block, 97 IO_STATUS_BLOCK* io_block,
98 NTSTATUS* nt_status); 98 NTSTATUS* nt_status);
99 }; 99 };
100 100
101 // Expands the path and check if it's a reparse point. Returns false if 101 // Expands the path and check if it's a reparse point. Returns false if
102 // we cannot determine or if there is an unexpected error. In that case 102 // we cannot determine or if there is an unexpected error. In that case
103 // the path cannot be trusted. 103 // the path cannot be trusted.
104 bool PreProcessName(const base::string16& path, base::string16* new_path); 104 bool PreProcessName(const base::string16& path, base::string16* new_path);
105 105
106 // Corrects global paths to have a correctly escaped NT prefix at the
107 // beginning. If the name has no NT prefix (either normal or escaped)
108 // add the escaped form to the string
109 base::string16 FixNTPrefixForMatch(const base::string16& name);
110
106 } // namespace sandbox 111 } // namespace sandbox
107 112
108 #endif // SANDBOX_SRC_FILESYSTEM_POLICY_H__ 113 #endif // SANDBOX_SRC_FILESYSTEM_POLICY_H__
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698