Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only call grantpt on MacOS systems #3547

Merged
merged 1 commit into from Apr 29, 2020
Merged

Only call grantpt on MacOS systems #3547

merged 1 commit into from Apr 29, 2020

Conversation

nlewo
Copy link
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.

None yet

2 participants