Skip to content

Instantly share code, notes, and snippets.

View rbrisita's full-sized avatar

Robert Brisita rbrisita

View GitHub Profile
@rbrisita
rbrisita / prepare_sh.sb
Created March 23, 2022 19:17
OS X Isolated Shell
;
; Prepares a shell for the current working directory with file and directory commands.
; Tested on Mac OS X 10.13.6
; sandbox-exec -D TTY=$(tty) -D CWD=$(pwd) -f prepare_sh.sb /bin/sh
;
(version 1)
(deny default)
; Allow commands to fork.
(allow process-fork)