Security Concern - why is it necessary to enable kernel.unprivileged_userns_clone?
See original GitHub issueDuring 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:
- Is this a safe operation that will not open me up to kernel vulnerabilities
- Why are these needed?
- Can I disable them afterwards?
Thanks!
Issue Analytics
- State:
- Created 3 years ago
- Reactions:9
- Comments:22 (10 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I quite dislike the combination of a cryptocurrency wallet and unprivileged namespace, or am I just the paranoid one here?
+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.