aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/sandbox-network.sb
blob: 56beec761fa8e4ec60f35b0c7c754674718ca19a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
; Allow local and remote network traffic.
(allow network* (local ip) (remote ip))

; Allow access to /etc/resolv.conf (which is a symlink to
; /private/var/run/resolv.conf).
(allow file-read-metadata
       (literal "/var")
       (literal "/etc")
       (literal "/etc/resolv.conf")
       (literal "/private/etc/resolv.conf"))

(allow file-read*
       (literal "/private/var/run/resolv.conf"))

; Allow DNS lookups.
(allow network-outbound (remote unix-socket (path-literal "/private/var/run/mDNSResponder")))