Skip to content

Commit

Permalink
sandbox: allow pty devices
Browse files Browse the repository at this point in the history
Nix now runs builds with a pseudo-terminal to enable colored build
output.
  • Loading branch information
LnL7 committed Mar 20, 2020
1 parent 7f2df90 commit f6c122a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/libstore/sandbox-defaults.sb
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,12 @@
(literal "/dev/zero")
(subpath "/dev/fd"))

; Allow pseudo-terminals.
(allow file*
(literal "/dev/ptmx")
(regex #"^/dev/pty[a-z]+")
(regex #"^/dev/ttys[0-9]+"))

; Does nothing, but reduces build noise.
(allow file* (literal "/dev/dtracehelper"))

Expand Down

0 comments on commit f6c122a

Please sign in to comment.