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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « content/renderer/renderer.sb ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 ;; 1 ;;
2 ;; Copyright (c) 2011 The Chromium Authors. All rights reserved. 2 ;; Copyright (c) 2011 The Chromium Authors. All rights reserved.
3 ;; Use of this source code is governed by a BSD-style license that can be 3 ;; Use of this source code is governed by a BSD-style license that can be
4 ;; found in the LICENSE file. 4 ;; found in the LICENSE file.
5 ;; 5 ;;
6 ; This is the Sandbox configuration file used for safeguarding the utility 6 ; This is the Sandbox configuration file used for safeguarding the utility
7 ; process which is used for performing sandboxed operations that need to touch 7 ; process which is used for performing sandboxed operations that need to touch
8 ; the filesystem like decoding theme images and unpacking extensions. 8 ; the filesystem like decoding theme images and unpacking extensions.
9 ; 9 ;
10 ; This configuration locks everything down, except access to one configurable 10 ; This configuration locks everything down, except access to one configurable
11 ; directory. This is different from other sandbox configuration files where 11 ; directory. This is different from other sandbox configuration files where
12 ; file system access is entireley restricted. 12 ; file system access is entireley restricted.
13 13
14 ; *** The contents of content/common/common.sb are implicitly included here. *** 14 ; *** The contents of content/common/common.sb are implicitly included here. ***
15 15
16 ; Enable full access to given directory if needed. 16 ; Enable full access to given directory if needed.
17 ;ENABLE_DIRECTORY_ACCESS 17 (if (param-defined? permitted-dir)
18 (begin
19 (allow file-read-metadata )
20 (allow file-read* file-write* (regex (param permitted-dir)))))
OLDNEW
« 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