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

Unified Diff: content/utility/utility.sb

Issue 1186233004: Refactor OS X sandbox processing and audit sandbox files (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changes per code review Created 5 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 side-by-side diff with in-line comments
Download patch
« content/ppapi_plugin/ppapi.sb ('K') | « content/renderer/renderer.sb ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/utility/utility.sb
diff --git a/content/utility/utility.sb b/content/utility/utility.sb
index 0e0bf767d8ffe495a51a26b8b958f56937373dfa..5af49f7ec8305be70360fcb9e127e18dcf564c67 100644
--- a/content/utility/utility.sb
+++ b/content/utility/utility.sb
@@ -14,4 +14,7 @@
; *** The contents of content/common/common.sb are implicitly included here. ***
; Enable full access to given directory if needed.
-;ENABLE_DIRECTORY_ACCESS
+(if (param-defined? perm-dir)
+ (begin
+ (allow file-read-metadata )
+ (allow file-read* file-write* (regex (string-append #"" (param perm-dir))))))
« content/ppapi_plugin/ppapi.sb ('K') | « content/renderer/renderer.sb ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698