1 ;; OriginatingProject: ipsec
4 (allow system-socket sysctl-read sysctl-write)
6 (allow ipc-posix* (ipc-posix-name "com.apple.securityd"))
8 (ipc-posix-name "apple.shm.notification_center")
9 (ipc-posix-name "com.apple.AppleDatabaseChanged"))
11 (allow file-read* file-ioctl
12 (subpath "/private/etc/master.passwd")
13 (subpath "/private/var/run/racoon")
14 (literal "/private/var/preferences/SystemConfiguration/com.apple.ipsec.plist")
15 (subpath "/private/etc/racoon"))
18 (subpath "/Library/Managed\ Preferences")
19 (subpath "/Library/Preferences")
20 (subpath "/private/var/root")
21 (literal "/private/var/db/mds/messages/se_SecurityMessages"))
24 (literal "/private/var/run/racoon.sock")
25 (literal "/private/var/run/racoon.pid"))
28 (literal "/var/log/racoon.log")
29 (literal "/private/var/log/racoon.log"))
31 (allow iokit-open (iokit-user-client-class "RootDomainUserClient"))
33 (allow network-outbound (subpath "/private/var/tmp/launchd"))
35 (local udp "*:500" "*:4500")
37 (literal "/private/var/run/racoon.sock"))
40 (literal "/Library/Keychains/System.keychain")
41 (literal "/private/var/db/mds/system/mdsObject.db")
42 (literal "/private/var/db/mds/system/mds.lock")
43 (literal "/private/var/db/mds/system/mdsDirectory.db"))
46 (global-name "com.apple.SecurityServer")
47 (global-name "com.apple.ocspd"))
49 ;;;;;; Common system sandbox rules
51 ;;;;;; Copyright (c) 2008-2010 Apple Inc. All Rights reserved.
53 ;;;;;; WARNING: The sandbox rules in this file currently constitute
54 ;;;;;; Apple System Private Interface and are subject to change at any time and
55 ;;;;;; without notice. The contents of this file are also auto-generated and
56 ;;;;;; not user editable; it may be overwritten at any time.
58 ;;; Allow read access to standard system paths.
61 (require-all (file-mode #o0004)
62 (require-any (subpath "/System")
65 (subpath "/usr/share"))))
67 (allow file-read-metadata
72 ;;; Allow access to standard special files.
75 (literal "/private/var/db/timezone/localtime")
76 (literal "/dev/random")
77 (literal "/dev/urandom"))
82 (literal "/dev/zero"))
87 (literal "/dev/aes_0")
88 (literal "/dev/sha1_0")
89 (literal "/dev/dtracehelper"))
91 (allow network-outbound
92 (literal "/private/var/run/asl_input")
93 (literal "/private/var/run/syslog"))
95 ;;; Allow IPC to standard system agents.
98 (global-name "com.apple.securityd")
99 (global-name "com.apple.bsd.dirhelper")
100 (global-name "com.apple.system.DirectoryService.libinfo_v1")
101 (global-name "com.apple.system.DirectoryService.membership_v1")
102 (global-name "com.apple.system.logger")
103 (global-name "com.apple.system.notification_center"))