OLD | NEW |
1 ;; | 1 ;; |
2 ;; Copyright (c) 2009 The Chromium Authors. All rights reserved. | 2 ;; Copyright (c) 2009 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 | 6 |
7 ; *** The contents of chrome/common/common.sb are implicitly included here. *** | 7 ; *** The contents of chrome/common/common.sb are implicitly included here. *** |
8 | 8 |
9 ; Needed for Fonts. | 9 ; Needed for Fonts. |
10 (allow file-read-data (regex #"^/System/Library/Fonts($|/)")) ; 10.5.6 | 10 (allow file-read-data (regex #"^/System/Library/Fonts($|/)")) ; 10.5.6 |
11 ; 10.6 for loading fonts in the renderer. | 11 ; 10.6 for loading fonts in the renderer. |
12 ; on 10.5 this is needed for the PDF plugin. | 12 ; on 10.5 this is needed for the PDF plugin. |
13 (allow file-read-data (regex #"^/Library/Fonts($|/)")) | 13 (allow file-read-data (regex #"^/Library/Fonts($|/)")) |
14 (allow mach-lookup (global-name "com.apple.FontObjectsServer")) ; 10.5.6 | 14 (allow mach-lookup (global-name "com.apple.FontObjectsServer")) ; 10.5.6 |
15 ;10.6_ONLY (allow mach-lookup (global-name "com.apple.FontServer")) ; 10.6 | 15 ;10.6_ONLY (allow mach-lookup (global-name "com.apple.FontServer")) ; 10.6 |
16 | 16 |
17 ; http://crbug.com/46648 | 17 ; http://crbug.com/46648 |
18 (allow file-read-data (regex #"^/System/Library/ColorSync($|/)")) ; 10.5.6 | 18 (allow file-read-data (regex #"^/System/Library/ColorSync($|/)")) ; 10.5.6 |
19 | 19 |
20 ; USER_HOMEDIR is substitued at runtime - http://crbug.com/11269 | 20 ; USER_HOMEDIR is substitued at runtime - http://crbug.com/11269 |
21 ;10.6_ONLY (allow file-read-data (subpath "USER_HOMEDIR/Library/Fonts")) ; 10.6 | 21 ;10.6_ONLY (allow file-read-data (subpath "USER_HOMEDIR/Library/Fonts")) ; 10.6 |
22 | |
23 ; Needed for the Native Client plugin and loader. These lines are enabled | |
24 ; if and only if --internal-nacl (or --enable-nacl) are used (and they | |
25 ; are off by default). | |
26 ; TODO(msneck): Refactor Native Client to use something other than Unix | |
27 ; sockets. Then change or remove the code in chrome/common/sandbox_mac.mm | |
28 ; which deals with the ";NACL" prefix. | |
29 ; See http://code.google.com/p/nativeclient/issues/detail?id=344 | |
30 ;NACL;BEFORE_10.6 (allow network-inbound (from unix-socket)) | |
31 ;NACL;BEFORE_10.6 (allow network-outbound (to unix-socket)) | |
32 ;NACL;10.6_ONLY (allow network-inbound (regex #"^(/private)?/tmp/nacl-")) | |
33 ;NACL;10.6_ONLY (allow network-outbound (regex #"^(/private)?/tmp/nacl-")) | |
34 ;NACL;10.6_ONLY (allow network-bind (local ip4)) | |
35 ;NACL;10.6_ONLY (allow file-write* (regex #"^(/private)?/tmp/nacl-")) | |
OLD | NEW |