-
Notifications
You must be signed in to change notification settings - Fork 106
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
sandbox = true does not always work #172
Comments
I believe on mac the situation is kind of gross: some things require sandbox and sometimes cannot use it. @alexfmpe am I getting this right? |
Oh, I should add I am on linux (Debian unstable). |
@nomeata Can you post your nix version? I thought this was fixed before 2.0 was released. |
nix-2.0.4 |
Strange. I have the same version, and this succeeds for me:
It looks like an eval error, so the fact that I already had many of the dependencies cached shouldn't be relevant. |
@ryantrinkle Back when I tested this, I couldn't get Mac to work with any sandboxing: #83 |
Same error on arch linux (nix 2.0.4). |
@nomeata @tenniscp25 Can you guys post whether you're using multi-user Nix? |
I don't have nix-info executable but I think mine's single-user. I did a fresh install with
/etc/nix/nix.conf content:
|
Huh. I thought
You can also tell that you have multi-user Nix if |
Some Linux kernels don't allow namespace cloning. Maybe Debian does that now? This is probably related to nix-community/nix-bundle#31. We do need a good error message in Nix for this though. /cc @cleverca22 |
|
Try running:
or
or
Hopefully one of those exists! |
It may also just be a user permission issue. @tenniscp25 does not have multi-user nix, so everything is executed as his user rather than root. |
Setting the kernel parameter works! Thanks @matthewbauer @ElvishJerricco! |
Your instructions instruct to put
in
/etc/nix/nix.config
. But with this, the installation fails withIt works without that line in
nix.conf
. Issandbox = true
required for oblisk?The text was updated successfully, but these errors were encountered: