aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorilovezfs2017-07-11 01:47:36 -0700
committerilovezfs2017-07-11 01:47:36 -0700
commit53a677aba6f28a148c9950cfde7f73fda5cdf81f (patch)
treeea017a87127142033aaa760387fb6f3f7ea2aa5b
parentec91c3f8e23af9c16b7f8304b78484a717abcd03 (diff)
downloadbrew-53a677aba6f28a148c9950cfde7f73fda5cdf81f.tar.bz2
sandbox: allow write access to /dev/random
This avoids build failure for `root6`. MacPorts currently avoids the failure with a patch, as their sandbox doesn't yet allow write access to `/dev/random` either: https://github.com/macports/macports-ports/blob/7792b2c5655f9d2adb979434a242cc3ac60fea40/science/root6/Portfile#L73-L75 https://github.com/macports/macports-ports/blob/7792b2c5655f9d2adb979434a242cc3ac60fea40/science/root6/files/patch-disable-hsimple-macro.diff The relevant code where `/dev/random` is opened with `O_WRONLY` is here: https://github.com/root-project/root/blob/15673deba5a0cb73d90ae8f36d7b010f65b5e96e/interpreter/cling/lib/Utils/PlatformPosix.cpp#L63-L82
-rw-r--r--Library/Homebrew/sandbox.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/Library/Homebrew/sandbox.rb b/Library/Homebrew/sandbox.rb
index e2ff84ac5..e72ecb950 100644
--- a/Library/Homebrew/sandbox.rb
+++ b/Library/Homebrew/sandbox.rb
@@ -156,6 +156,7 @@ class Sandbox
(literal "/dev/ptmx")
(literal "/dev/dtracehelper")
(literal "/dev/null")
+ (literal "/dev/random")
(literal "/dev/zero")
(regex #"^/dev/fd/[0-9]+$")
(regex #"^/dev/ttys?[0-9]*$")