-
-
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
extra-sandbox-paths doesn't work on multi-user install #6115
Comments
I'd appreciate if someone took a look at this. It makes upgrading to Nix newer than |
It may be because you're not a trusted user? If you run with
|
Oh wow, you're right!
After adding
Thanks @edolstra this definitely solves the issue for me. Although honestly, I'm not sure why this kind of important warning/error should be hidden behind tripple |
Yeah, it used to be a warning rather than a debug message, but then people got spammed a lot about irrelevant client-side settings not being allowed by the daemon. We should improve that... |
Describe the bug
We are using the
extra-sandbox-paths
option withnix-build
in order to provide secrets to our mobile builds, android keystore for example. I'm trying to upgarde to2.6.0
, but this functionality appears to not work, and files provided via--option extra-sandbox-paths
are not available in the build sandbox.Steps To Reproduce
extra-sandbox-paths
:nix-build --option extra-sandbox-paths '/tmp/sandbox-file
Expected behavior
I expected it to work, like it does in a single-user installation or on NixOS.
Additional context
I have
strace
d thenix-daemon
process and found out that it gets anENOENT
error:But the file exists, and had the right permissions so a
nixbld*
user can read it:So I don't know what the issue is. Especially since it works fine on NixOS.
The text was updated successfully, but these errors were encountered: