diff options
| author | Xu Cheng | 2015-04-23 12:33:54 +0800 | 
|---|---|---|
| committer | Xu Cheng | 2015-04-23 12:33:54 +0800 | 
| commit | 35855e1fadd6b6a051fb78df19e73680dc261868 (patch) | |
| tree | f2d77e30e419b62aafaa04442e61295d57be7888 /Library/Homebrew/cmd | |
| parent | 8413e068a263116654c6b7e39e25c91235cc1189 (diff) | |
| download | homebrew-35855e1fadd6b6a051fb78df19e73680dc261868.tar.bz2 | |
sandbox: add deny_write_homebrew_library method
Diffstat (limited to 'Library/Homebrew/cmd')
| -rw-r--r-- | Library/Homebrew/cmd/postinstall.rb | 4 | 
1 files changed, 1 insertions, 3 deletions
diff --git a/Library/Homebrew/cmd/postinstall.rb b/Library/Homebrew/cmd/postinstall.rb index 16608e773..5e9e956c8 100644 --- a/Library/Homebrew/cmd/postinstall.rb +++ b/Library/Homebrew/cmd/postinstall.rb @@ -25,9 +25,7 @@ module Homebrew          sandbox.allow_write_log(formula)          sandbox.allow_write_cellar(formula)          sandbox.allow_write_path HOMEBREW_PREFIX -        sandbox.deny_write_path HOMEBREW_LIBRARY -        sandbox.deny_write_path HOMEBREW_REPOSITORY/".git" -        sandbox.deny_write HOMEBREW_BREW_FILE +        sandbox.deny_write_homebrew_library          sandbox.exec(*args)        else          exec(*args)  | 
