[plain text]

;; kpasswdd - sandbox profile
;; Copyright (c) 2009 Apple Inc.  All Rights reserved.
;; WARNING: The sandbox rules in this file currently constitute 
;; Apple System Private Interface and are subject to change at any time and
;; without notice. The contents of this file are also auto-generated and not
;; user editable; it may be overwritten at any time.
(version 1)

(deny default)

(import "")

(allow file-ioctl
       (literal "/dev/dtracehelper"))

(allow file-read*
       (literal "/Library/Preferences/")
       (literal "/Library/Preferences/")
       (literal "/Library/Preferences/SystemConfiguration/preferences.plist")
       (literal "/dev/dtracehelper")
       (literal "/dev/null")
       (literal "/dev/random")
       (literal "/tmp")
       (literal "/etc")
       (literal "/var")
       (literal "/private/etc/localtime")
       (subpath "/private/var/db/mds")
       (subpath "/private/var/var/db/krb5kdc")
       (subpath "/System")
       (subpath "/usr/lib")
       (subpath "/usr/share")

(allow file-write*
       (literal "/private/var/log/krb5kdc/kadmin.log")
       (literal "/private/var/run/")
       (subpath "/private/var/db/krb5kdc")

(allow file-write-data
       (literal "/dev/dtracehelper")
       (literal "/private/var/db/mds/system/mds.lock")
       (literal "/private/var/log/krb5kdc/kadmin.log"))

(allow ipc-posix-shm)

(allow mach-lookup
       (global-name "")
       (global-name "")
       (global-name "")
       (global-name ""))

(allow network-inbound
       (local tcp "*:749")
       (local udp "*:749"))

(allow network-outbound
       (literal "/private/var/run/mDNSResponder")
	   (literal "/var/run/passwordserver")
       (literal "/var/run/ldapi")
       (remote udp)
       (remote tcp))

(allow sysctl-read)