-
Notifications
You must be signed in to change notification settings - Fork 3
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
sysctl: cannot stat /proc/sys/kernel/unprivileged_userns_clone: No such file or directory #1
Comments
Well, it's a kernel option that should have been left enabled in the kernel by Valve so that users can decide to tighten their security if they want by disabling it. I don't really want to silence any errors on sysctl since it could be useful for debugging, it will print this to stderr on SteamOS as a harmless warning in that instance since the option is always enabled just not configurable. On other distros the Maybe I should use the |
Thank you for the prompt reply! If I've put together a PR for this at #2 |
I appreciate the attempt but please no distro checking like this, the error could happen on any distro if the kernel does not have the option enabled. Simply adding the |
Sure thing. Just for your info, from my testing I experienced issues with the |
I'm a bit embarrassed that it took me a while to catch the real issue with the sysctl line: sysctl -n kernel.unprivileged_userns_clone >&2 || echo 1 This sends the value if there is any to stderr so nothing will ever get checked against 1 /facepalm This is hopefully better: "$(sysctl -e -n kernel.unprivileged_userns_clone)" = "0" |
I just wanted to mention that this setting does not exist in the upstream mainline kernel and it will only exist on distros that have applied certain patches to their respective kernel. |
I think most distro kernels have the setting, at least the arch kernel has it. The Hardened kernel has it set to 0 so for rootless mode to work it needs to be set to 1. In case the setting is not available, |
@popsUlfr debian based and and arch based distros are the ones I've seen with the patch applied. I forked your implementation and updated podman, dependencies and refactored some stuff. I haven't done a pull request as some of the changes are more than minor tweaks. Let me know if you're interested in a pull request. |
A pull request would be fantastic. Thank you for looking into updating this, I haven't had the time to up the version myself. |
pull request #3 |
On launch of
.appimage
the following presents:sysctl: cannot stat /proc/sys/kernel/unprivileged_userns_clone: No such file or directory
I note that this error is present in your screenshot and seems to relate to lines 61-65 in entrypoint.sh. Does this simply require some
if
embellishment, or is it left to error for some more significant reason that I don't understand?Thanks, btw! This looks great! :)
The text was updated successfully, but these errors were encountered: