Skip to content
Snippets Groups Projects
Commit 58d998e2 authored by Mike McQuaid's avatar Mike McQuaid
Browse files

postinstall: allow write access to cellars in repository.

If HOMEBREW_CELLAR (or HOMEBREW_PREFIX) are children of
HOMEBREW_REPOSITORY it’s important to deny write to the repository and
enable write to the Cellar/prefix afterwards.
parent 6be6ce33
No related branches found
No related tags found
No related merge requests found
......@@ -35,10 +35,10 @@ module Homebrew
sandbox.record_log(formula.logs/"postinstall.sandbox.log")
sandbox.allow_write_temp_and_cache
sandbox.allow_write_log(formula)
sandbox.allow_write_cellar(formula)
sandbox.allow_write_xcode
sandbox.allow_write_path HOMEBREW_PREFIX
sandbox.deny_write_homebrew_repository
sandbox.allow_write_path HOMEBREW_PREFIX
sandbox.allow_write_cellar(formula)
sandbox.exec(*args)
else
exec(*args)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment