-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Nix 2.12+ allows writing to the sandbox's /etc #7813
Comments
FYI: NixOS/equinix-metal-builders#19 -- pins the EM Linux builders to 2.11 |
I believe that this impurity has caused libinput to become broken on all versions of nix except bleeding-edge-unstable since NixOS/nixpkgs#205386
The above works after a
Won't that stop working when the |
I think this is likely avoidable with a comment linking here and to the builder config repos, explaining why 2.11 needs to stick around. |
How libinput tries to create /etc changed in upstream commit 05501cd34f9c ("meson: use install_emptydir to create directory"), so we have to update our sed expression. This was missed in when libinput was updated in Nixpkgs due to a Nix bug[1], which made the sandbox's /etc writeable. [1]: NixOS/nix#7813 Fixes: bf928e5 ("libinput: 1.21.0 → 1.22.1")
Fixed in #7830. |
How libinput tries to create /etc changed in upstream commit 05501cd34f9c ("meson: use install_emptydir to create directory"), so we have to update our sed expression. This was missed in when libinput was updated in Nixpkgs due to a Nix bug[1], which made the sandbox's /etc writeable. [1]: NixOS/nix#7813 Fixes: bf928e5 ("libinput: 1.21.0 → 1.22.1")
Well, sure, but as these are both pinned by flakes, that won't happen until Nixpkgs gets updated past the potential removal of 2.11. Nixpkgs doesn't get updated quite as frequently as you'd expect for those configurations, and I don't expect this issue to stay for very long (especially since it's fixed in master -- now it's just waiting for the backports that will hopefully come 🤞). EDIT: backports are in, now just waiting for the release and subsequent bumps in Nixpkgs. |
Steps To Reproduce
Expected behavior
nix-env --version
outputnix-env (Nix) 2.12.0
Additional context
Introduced by #3600.
This is extremely problematic, as it makes it easy to miss packages trying to install files that will be discarded after the build. For example, NixOS/nixpkgs#214086 missed that the package now installs files into /etc. As long as OfBorg/Hydra are running affected Nix versions, we'll be unknowingly adding broken packages to Nixpkgs that won't build any more after this bug is fixed.
Priorities
Add 👍 to issues you find important.
The text was updated successfully, but these errors were encountered: