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

Unified Diff: content/common/common.sb

Issue 2919963003: Update sandbox profiles and remove regular expressions. (Closed)
Patch Set: Remove string quoting Created 3 years, 7 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/browser/gpu.sb ('k') | content/common/sandbox_mac.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/common.sb
diff --git a/content/common/common.sb b/content/common/common.sb
index 0b5394faaf49b54cb037c715f1a93b91377c6f6d..fbe0ff5c1b6f49ee98ab068e8f49272f86898fce 100644
--- a/content/common/common.sb
+++ b/content/common/common.sb
@@ -21,7 +21,12 @@
(define elcap-or-later "ELCAP_OR_LATER")
; Consumes a subpath and appends it to the user's homedir path.
-(define (user-homedir-path subpath) (string-append (param homedir-as-literal) subpath))
+(define (user-homedir-path subpath)
+ (string-append (param homedir-as-literal) subpath))
+
+; (path) is not supported until 10.10.
+; TODO(kerrnel): remove this when 10.9 is no longer supported.
+(define (path x) (literal x))
; DISABLE_SANDBOX_DENIAL_LOGGING turns off log messages in the system log.
(if (param-true? disable-sandbox-denial-logging)
@@ -39,9 +44,9 @@
; Loading System Libraries.
(allow file-read*
- (regex #"^/System/Library/Frameworks($|/)")
- (regex #"^/System/Library/PrivateFrameworks($|/)")
- (regex #"^/System/Library/CoreServices($|/)"))
+ (subpath "/System/Library/Frameworks")
+ (subpath "/System/Library/PrivateFrameworks")
+ (subpath "/System/Library/CoreServices"))
(allow ipc-posix-shm)
« no previous file with comments | « content/browser/gpu.sb ('k') | content/common/sandbox_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698