1 ; Copyright (C) 2014 Apple Inc. All rights reserved.
3 ; Redistribution and use in source and binary forms, with or without
4 ; modification, are permitted provided that the following conditions
6 ; 1. Redistributions of source code must retain the above copyright
7 ; notice, this list of conditions and the following disclaimer.
8 ; 2. Redistributions in binary form must reproduce the above copyright
9 ; notice, this list of conditions and the following disclaimer in the
10 ; documentation and/or other materials provided with the distribution.
12 ; THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
13 ; AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
14 ; THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
15 ; PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
16 ; BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
17 ; CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
18 ; SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
19 ; INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
20 ; CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
21 ; ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
22 ; THE POSSIBILITY OF SUCH DAMAGE.
25 (deny default (with partial-symbolication))
26 (allow system-audit file-read-metadata)
29 (import "removed-dev-nodes.sb")
31 ;; Access to client's cache folder & re-vending to CFNetwork.
32 ;; FIXME: Remove the webkti specific extension classes <rdar://problem/17755931>
33 (allow file-issue-extension (require-all
34 (extension "com.apple.app-sandbox.read-write")
35 (extension-class "com.apple.nsurlstorage.extension-cache")))
37 ;; App sandbox extensions
38 (allow file-read* file-write* (extension "com.apple.app-sandbox.read-write"))
42 (iokit-user-client-class "RootDomainUserClient"))
44 ;; Various services required by CFNetwork and other frameworks
46 (global-name "com.apple.PowerManagement.control"))
48 (network-client (remote tcp))
52 (global-name "com.apple.ocspd")
53 (global-name "com.apple.securityd")
54 (global-name "com.apple.accountsd.accountmanager"))
56 (deny file-write-create