aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShea Levy <shea@shealevy.com>2015-10-31 02:44:58 -0400
committerShea Levy <shea@shealevy.com>2015-10-31 02:44:58 -0400
commit9a963c8adc131c63d940f8761e1d4554a163d59c (patch)
tree55a3b55ecadd3f2b7325da932ce039c53bb428ea
parentb83fb35f7947e25124ec733422a7479d5975eccf (diff)
parent95c66cc95058b9a918dbd1ef756b9da6abdd7eee (diff)
Merge branch 'master' of git://github.com/pikajude/nix
@pikajude: "This is required for perlPackages.IOTty and, by extension, mosh"
-rw-r--r--src/libstore/sandbox-defaults.sb.in5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/libstore/sandbox-defaults.sb.in b/src/libstore/sandbox-defaults.sb.in
index 12c39fa7f..702f05602 100644
--- a/src/libstore/sandbox-defaults.sb.in
+++ b/src/libstore/sandbox-defaults.sb.in
@@ -35,7 +35,10 @@
(literal "/private/var/run/resolv.conf"))
; some builders use filehandles other than stdin/stdout
-(allow file* (subpath "/dev/fd"))
+(allow file*
+ (subpath "/dev/fd")
+ (literal "/dev/ptmx")
+ (regex #"^/dev/[pt]ty.*$"))
; allow everything inside TMP
(allow file* process-exec