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

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: Move struct to anon namespace and use static_cast<> Created 5 years, 5 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 | « 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..c60b4be9f1f7f2bdace4dac38668e98e31d9316e 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? permitted-dir)
+ (begin
+ (allow file-read-metadata )
+ (allow file-read* file-write* (regex (param permitted-dir)))))
« no previous file with comments | « content/renderer/renderer.sb ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698