mirror of
https://github.com/NixOS/nix
synced 2025-07-08 06:53:54 +02:00
sandbox: allow pty devices
Nix now runs builds with a pseudo-terminal to enable colored build
output.
(cherry picked from commit f6c122aaeb
)
Signed-off-by: Domen Kožar <domen@dev.si>
This commit is contained in:
parent
f953a51d43
commit
27e7153771
1 changed files with 6 additions and 0 deletions
|
@ -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"))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue