Skip to content

chroot on modern macOS: disallowed

-> % sudo chroot /         
[1]    93188 killed     sudo chroot /
-> % sudo dmesg | grep AMFI
[1281783.098834]: AMFI: hook..execve() hardened runtime not allowed in chrootAMFI: hook..execve() killing pid 93189: not allowed in chroot

The hardened runtime is enforced for all executables bundled as part of macOS. As such, chroot isn’t usable anymore for running a macOS CLI environment.

1 thought on “chroot on modern macOS: disallowed”

Leave a Reply

Your email address will not be published. Required fields are marked *