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

The installer script may fail in proot due to unrelated dependecies using new system calls #7213

Open
deliciouslytyped opened this issue Oct 24, 2022 · 0 comments

Comments

@deliciouslytyped
Copy link

deliciouslytyped commented Oct 24, 2022

I'm mostly just making a note here;

Using sh <(curl -L https://nixos.org/nix/install) from https://nixos.org/download.html , which invokes scripts in the nix codebase to install nix, can fail with strange issues when using proot, because proot shim's systemcalls, but does not whitelist them, leading to inconsistent processing.

If for example glibc or other such libraries migrate to a new system call interface (two examples are statx (not supported by proot 5.1.0) and faccessat2 (not in any proot release yet)), and proot does not support the new syscalls, proot will not warn about this and you will experience strange issues.

This is explained at https://nixos.wiki/wiki/Nix_Installation_Guide#Troubleshooting_2 and proot-me/proot#340 .

It would be nice if there was a CI test checking installation and invocation in proot on modern kernels. It provides a mechanism for the usecase of being able to use nix without any special permissions (some sites may not enable user namespaces; I have a concrete report of one such case in HPC.).

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

No branches or pull requests

1 participant