1 ;; OriginatingProject: ipsec
7 (allow system-socket sysctl-read sysctl-write)
9 (allow system-info (info-type "net.link.addr"))
11 (allow ipc-posix* (ipc-posix-name "com.apple.securityd"))
13 (ipc-posix-name "apple.shm.notification_center")
14 (ipc-posix-name "com.apple.AppleDatabaseChanged"))
16 (allow file-read* file-ioctl
17 (subpath "/private/etc/master.passwd")
18 (subpath "/private/var/run/racoon")
19 (literal "/private/var/preferences/SystemConfiguration/com.apple.ipsec.plist")
20 (subpath "/private/etc/racoon"))
23 (subpath "/Library/Managed\ Preferences")
24 (subpath "/Library/Preferences")
25 (subpath "/private/var/root")
26 (literal "/private/var/mobile/Library/Caches/com.apple.MobileGestalt.plist")
27 (literal "/private/var/db/mds/messages/se_SecurityMessages")
28 (literal "/private/var/db/icu"))
31 (literal "/private/var/run/racoon.sock")
32 (literal "/private/var/run/racoon.pid"))
35 (literal "/var/log/racoon.log")
36 (literal "/private/var/log/racoon.log"))
38 (allow iokit-open (iokit-user-client-class "RootDomainUserClient"))
40 (allow network-outbound (subpath "/private/var/tmp/launchd"))
42 (local udp "*:500" "*:4500")
44 (literal "/private/var/run/racoon.sock"))
47 (literal "/Library/Keychains/System.keychain")
48 (literal "/private/var/db/mds/system/mdsObject.db")
49 (literal "/private/var/db/mds/system/mds.lock")
50 (literal "/private/var/db/mds/system/mdsDirectory.db"))
53 (global-name "com.apple.SecurityServer")
54 (global-name "com.apple.SystemConfiguration.configd")
55 (global-name "com.apple.ocspd")
56 (global-name "com.apple.commcenter.xpc")
57 (global-name "com.apple.aggregated")
58 (global-name "com.apple.cfprefsd.daemon")
59 (global-name "com.apple.cfprefsd.agent")
60 (local-name "com.apple.cfprefsd.agent")
61 (global-name "com.apple.nehelper"))
63 (allow ipc-posix-shm-read*
64 (ipc-posix-name-regex #"^apple\.shm\.cfprefsd\."))
66 ;;;;;; Common system sandbox rules
68 ;;;;;; Copyright (c) 2008-2010 Apple Inc. All Rights reserved.
70 ;;;;;; WARNING: The sandbox rules in this file currently constitute
71 ;;;;;; Apple System Private Interface and are subject to change at any time and
72 ;;;;;; without notice. The contents of this file are also auto-generated and
73 ;;;;;; not user editable; it may be overwritten at any time.
75 ;;; Allow read access to standard system paths.
78 (require-all (file-mode #o0004)
79 (require-any (subpath "/System")
82 (subpath "/usr/share"))))
84 (allow file-read-metadata
89 ;;; Allow access to standard special files.
92 (subpath "/usr/share")
93 (subpath "/private/var/db/timezone")
94 (literal "/dev/random")
95 (literal "/dev/urandom"))
100 (literal "/dev/zero"))
105 (literal "/dev/aes_0")
106 (literal "/dev/sha1_0")
107 (literal "/dev/dtracehelper"))
109 (allow network-outbound
110 (literal "/private/var/run/asl_input")
111 (literal "/private/var/run/syslog"))
113 ;;; Allow IPC to standard system agents.
116 (global-name "com.apple.securityd")
117 (global-name "com.apple.bsd.dirhelper")
118 (global-name "com.apple.system.logger")
119 (global-name "com.apple.system.notification_center"))
121 ;;; Allow creating an ipsec interface
122 (allow network-outbound
123 (control-name "com.apple.net.ipsec_control"))
125 ;;; Allow racoon to check entitlements
127 (iokit-user-client-class "AppleMobileFileIntegrityUserClient"))