From 53a677aba6f28a148c9950cfde7f73fda5cdf81f Mon Sep 17 00:00:00 2001 From: ilovezfs Date: Tue, 11 Jul 2017 01:47:36 -0700 Subject: [PATCH] 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 --- Library/Homebrew/sandbox.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/Library/Homebrew/sandbox.rb b/Library/Homebrew/sandbox.rb index e2ff84ac50..e72ecb9505 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]*$")