Skip to content

Only call grantpt on MacOS systems#3547

Merged
edolstra merged 1 commit intoNixOS:masterfrom
nlewo:grantpt
Apr 29, 2020
Merged

Only call grantpt on MacOS systems#3547
edolstra merged 1 commit intoNixOS:masterfrom
nlewo:grantpt

Conversation

@nlewo
Copy link
Copy Markdown
Member

@nlewo nlewo commented Apr 29, 2020

The commit 3cc1125 adds a grantpt
call on the builder pseudo terminal fd. This call is actually only
required for MacOS, but it however requires a RW access to /dev/pts
which is only RO bindmounted in the Bazel Linux sandbox. So, Nix can
not be actually run in the Bazel Linux sandbox for unneeded reasons.

Note, on a Linux systems with a mono user Nix installation, the grantpt
call removes the write permission to the group tty on the pseudo
terminal file.

The commit 3cc1125 adds a `grantpt`
call on the builder pseudo terminal fd. This call is actually only
required for MacOS, but it however requires a RW access to /dev/pts
which is only RO bindmounted in the Bazel Linux sandbox. So, Nix can
not be actually run in the Bazel Linux sandbox for unneeded reasons.
@edolstra edolstra merged commit aeb406d into NixOS:master Apr 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants