Skip to content

Commit

Permalink
avoid cascaded "(allow sysctl-read (if" statement, this fixes "Seatbe…
Browse files Browse the repository at this point in the history
…ltExecServer: Failed to initialize sandbox: line 198: car: argument 1 must be: pair"
  • Loading branch information
blueboxd committed Jul 21, 2023
1 parent 2e71fd8 commit 6fc8028
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions sandbox/policy/mac/common.sb
Original file line number Diff line number Diff line change
Expand Up @@ -281,11 +281,14 @@
(sysctl-name "kern.usrstack64")
(sysctl-name "kern.version")
(sysctl-name "sysctl.proc_cputype")
(if (defined? 'sysctl-name-prefix)
(sysctl-name-prefix "hw.perflevel"))
)
)

(if (>= os-version 1100)
(allow sysctl-read
(sysctl-name-prefix "hw.perflevel"))
)

(allow network-outbound
(literal "/private/var/run/asl_input")
(literal "/private/var/run/syslog")
Expand Down

0 comments on commit 6fc8028

Please sign in to comment.