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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: sandbox/win/src/filesystem_policy.h
diff --git a/sandbox/win/src/filesystem_policy.h b/sandbox/win/src/filesystem_policy.h
index 68dffec34ffd866a6adb107449a8c84247d74b90..ce28344c535edcd572d6fdecdd865a163c262b75 100644
--- a/sandbox/win/src/filesystem_policy.h
+++ b/sandbox/win/src/filesystem_policy.h
@@ -103,6 +103,11 @@ class FileSystemPolicy {
// the path cannot be trusted.
bool PreProcessName(const base::string16& path, base::string16* new_path);
+// Corrects global paths to have a correctly escaped NT prefix at the
+// beginning. If the name has no NT prefix (either normal or escaped)
+// add the escaped form to the string
+base::string16 FixNTPrefixForMatch(const base::string16& name);
+
} // namespace sandbox
#endif // SANDBOX_SRC_FILESYSTEM_POLICY_H__

Powered by Google App Engine
This is Rietveld 408576698