;;; Copyright (c) 2017 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. ;;; (version 1) (deny default) (deny file-map-executable iokit-get-properties process-info* nvram*) (deny dynamic-code-generation) (deny mach-priv-host-port) (import "system.sb") (import "com.apple.corefoundation.sb") (corefoundation) (allow process-info* (target self)) ;; For resolving symlinks, realpath(3), and equivalents. (allow file-read-metadata) ;; For validating the entitlements of clients. (allow process-info-codesignature) ;; We need to copy bundles which can be anywhere on disk (allow file-read* ) ;; We need read/write access to xpcroleaccountd staging areas (allow file-read* file-write* (subpath "/private/var/db/com.apple.xpc.roleaccountd.staging") (subpath "/private/var/MobileSoftwareUpdate/com.apple.xpc.roleaccountd.staging")) ;; Allow access to read the NVRAM variables (allow nvram*)