Created
November 19, 2012 23:54
-
-
Save n-miyo/4114978 to your computer and use it in GitHub Desktop.
modified named sandbox profile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; | |
;; named - sandbox profile | |
;; Copyright (c) 2006-2007 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) | |
(debug deny) | |
(import "bsd.sb") | |
(deny default) | |
(allow process*) | |
(deny signal) | |
(allow sysctl-read) | |
(allow network*) | |
;; Allow named-specific files | |
(allow file-write* file-read-data file-read-metadata | |
(regex "^(/private)?/var/run/named/named\\.pid$" | |
"^(/private)?/var/run/named/session\\.key$" | |
"^(/private)?/var/run/named$" | |
"^(/private)?/var/named$" | |
"^(/private)?/var/named/tmp-" | |
"^/Library/Logs/named\\.log$")) | |
(allow file-read-data file-read-metadata | |
(regex "^(/private)?/etc/rndc\\.key$" | |
"^(/private)?/etc/resolv\\.conf$" | |
"^(/private)?/etc/named\\.conf$" | |
"^(/private)?/var/named/")) | |
(allow file-read-data file-ioctl | |
(literal "/dev/random")) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
add /var/run/named dir to file-write target.