4 ms·
They do chroot. You can only install to specific directories
by dickeytk 7y ago
They do chroot. You can only install to specific directories
- brianpgordon 7y agoAh, I found it. On MacOS they rely on sandbox-exec which uses the sandboxing mechanism provided by the kernel: https://github.com/Homebrew/brew/blob/e2c76cce8e01fd80e0910ddbf8d03092d8753673/Library/Homebrew/formula_installer.rb#L930 https://github.com/Homebrew/brew/blob/e2c76cce8e01fd80e0910d... https://github.com/Homebrew/brew/blob/master/Library/Homebrew/sandbox.rb https://github.com/Homebrew/brew/blob/master/Library/Homebre...