use seatbelt on macos, with two profiles: minimal (default) which only restricts writes, and strict, which is deny-by-default and only allows specific operations (#283)

This commit is contained in:
Olcan
2025-05-07 20:03:29 -07:00
committed by GitHub
parent 34fe142894
commit d524309e3c
5 changed files with 133 additions and 3 deletions

View File

@@ -0,0 +1,15 @@
(version 1)
;; allow everything by default
(allow default)
;; deny all writes EXCEPT under project directory, temp directory, stdout/stderr and /dev/null
(deny file-write*)
(allow file-write*
(subpath (param "TARGET_DIR"))
(subpath (param "TMP_DIR"))
(literal "/dev/stdout")
(literal "/dev/stderr")
(literal "/dev/null")
)