aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXu Cheng2015-10-09 17:42:21 +0800
committerXu Cheng2015-10-10 11:54:10 +0800
commit76a5ba6ae598ea0c6c204f3a30bc36dd3a423d67 (patch)
tree8ba7177143b9eb692c0228a0661ff73a6fcf2508
parent52de8d93733ca371996d56c721ba99483d271b24 (diff)
downloadbrew-76a5ba6ae598ea0c6c204f3a30bc36dd3a423d67.tar.bz2
test: allow writing to certain var directories
Closes Homebrew/homebrew#44458. Closes Homebrew/homebrew#44773. Signed-off-by: Xu Cheng <xucheng@me.com>
-rw-r--r--Library/Homebrew/cmd/test.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/test.rb b/Library/Homebrew/cmd/test.rb
index e6b0aa297..fb2c80f7f 100644
--- a/Library/Homebrew/cmd/test.rb
+++ b/Library/Homebrew/cmd/test.rb
@@ -56,6 +56,9 @@ module Homebrew
sandbox.allow_write_temp_and_cache
sandbox.allow_write_log(f)
sandbox.allow_write_xcode
+ sandbox.allow_write_path(HOMEBREW_PREFIX/"var/cache")
+ sandbox.allow_write_path(HOMEBREW_PREFIX/"var/log")
+ sandbox.allow_write_path(HOMEBREW_PREFIX/"var/run")
sandbox.exec(*args)
else
exec(*args)