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

homeless-shelter writable and causes failure if something writes there #118

Open
terlar opened this issue Jun 2, 2024 · 1 comment
Open

Comments

@terlar
Copy link

terlar commented Jun 2, 2024

If running nix-portable with sandbox = false and a derivation writes to HOME you will get an error like this:

error: home directory '/homeless-shelter' exists; please remove it to assure purity of builds without sandboxing

I noticed this when trying to build this:
nix-community/NixOS-WSL#481

Perhaps this folder can ensure it is not writable. Or if it is possible to solve in another way.

@SuperSandro2000
Copy link

/homeless-shelter should not exist but should be writeable.

Possible solutions:

  • remove it after/before each build
  • map it to /var/empty (might break other things)
  • use bwrap/chroot
  • enable the sandbox

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

2 participants