question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Security Concern - why is it necessary to enable kernel.unprivileged_userns_clone?

See original GitHub issue

During installation on Debian Buster an error comes up prompting me with the following

user@machine:~/mnt2/samples$ ./daedalus-1.1.0-mainnet-12849.bin 
Run the following to enable unprivileged namespace use:
sudo bash -c "sysctl -w kernel.unprivileged_userns_clone=1 ; echo kernel.unprivileged_userns_clone=1 > /etc/sysctl.d/nix-user-chroot.conf"

A quick google gives this security exchange answer which doesn’t clear things up or inspire confidence.

Further googling takes me to your installation instructions which gloss over these commands and don’t inform me why you need them.

Additionally it isn’t clear if these settings are required permanently or can be re enabled after installation.

So if possible could you clarify these points for me:

  1. Is this a safe operation that will not open me up to kernel vulnerabilities
  2. Why are these needed?
  3. Can I disable them afterwards?

Thanks!

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:9
  • Comments:22 (10 by maintainers)

github_iconTop GitHub Comments

6reactions
Tomassmitscommented, Feb 23, 2021

I quite dislike the combination of a cryptocurrency wallet and unprivileged namespace, or am I just the paranoid one here?

5reactions
carrotshadowcommented, Feb 25, 2021

+1. Some explanation would be useful please. Guess I try virtualisation next. Probably build from source to choose installation directories too. Most likely I just lack the knowledge, and documentation, but I did search. Thanks for all efforts.

Read more comments on GitHub >

github_iconTop Results From Across the Web

What does enabling kernel.unprivileged_userns_clone do?
Enabling unprivileged user namespaces can make severe vulnerabilities in the Linux kernel much more easily exploitable.
Read more >
Your host OS has to allow for unprivileged user namespaces ...
This problem is pretty much only getting worse because user namespaces are becoming more powerful whereas kernel security is staying the same (ie:...
Read more >
Unprivileged User Namespaces enabled by default in kernel ...
And still there in kernel 5.1.9 so this seems to be intentional and no accident. It would appear the "general security concerns" mentioned ......
Read more >
Please reconsider enabling the user namespaces by default
Arch Linux now enables user namespaces in their default kernel. ... a significant fraction of the security issues > > found in the...
Read more >
Enable user namespaces in Debian kernel
sudo sysctl -w kernel.unprivileged_userns_clone=1 ... we want to make sure that, if any security issues are found, we have a fail-safe.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found