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

Unified Diff: chrome/renderer/renderer.sb

Issue 4044002: Mac: block ability to stat arbitrary files in the Sandbox (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix review comments Created 10 years, 2 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
« no previous file with comments | « chrome/common/sandbox_mac_diraccess_unittest.mm ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/renderer.sb
diff --git a/chrome/renderer/renderer.sb b/chrome/renderer/renderer.sb
index 9c075b4318fcc2d14d68d66f2b90a4348dbc00bc..ffd1052590dcc0af182ed0c02f0173ca07079687 100644
--- a/chrome/renderer/renderer.sb
+++ b/chrome/renderer/renderer.sb
@@ -7,15 +7,15 @@
; *** The contents of chrome/common/common.sb are implicitly included here. ***
; Needed for Fonts.
-(allow file-read-data (regex #"^/System/Library/Fonts($|/)")) ; 10.5.6
+(allow file-read* (regex #"^/System/Library/Fonts($|/)")) ; 10.5.6
; 10.6 for loading fonts in the renderer.
; on 10.5 this is needed for the PDF plugin.
-(allow file-read-data (regex #"^/Library/Fonts($|/)"))
+(allow file-read* (regex #"^/Library/Fonts($|/)"))
(allow mach-lookup (global-name "com.apple.FontObjectsServer")) ; 10.5.6
;10.6_ONLY (allow mach-lookup (global-name "com.apple.FontServer")) ; 10.6
; http://crbug.com/46648
-(allow file-read-data (regex #"^/System/Library/ColorSync($|/)")) ; 10.5.6
+(allow file-read* (regex #"^/System/Library/ColorSync($|/)")) ; 10.5.6
; USER_HOMEDIR is substitued at runtime - http://crbug.com/11269
-;10.6_ONLY (allow file-read-data (subpath "USER_HOMEDIR/Library/Fonts")) ; 10.6
+;10.6_ONLY (allow file-read* (subpath "USER_HOMEDIR/Library/Fonts")) ; 10.6
« no previous file with comments | « chrome/common/sandbox_mac_diraccess_unittest.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698