-
Notifications
You must be signed in to change notification settings - Fork 79
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
SUID sandbox helper binary issue on Debian Linux #1045
Comments
Thanks for your report! It's strange that only Debian seems to be affected so far. Can you test it with multiple Debian computers and also Agent 1.2.13 and 1.2.12? |
@mondalaci Interestingly, agent 1.2.12 works properly on my system, while 1.2.13 doesn't. |
I checked out v1.2.12 but
But if we read the error message it sort of makes sense because a regular user cannot change the ownership to root and permission to 4755. I'm not sure though; maybe the best solution is to repackage the AppImage following the suggestion by the error message in the OP and make a document change. |
I'm not sure why node-hid fails to build at your side. It's quite strange that 1.2.12 works on your system while 1.2.13 doesn't, indeed. We'll look into this. |
@xuhdev If you would like to build the 1.12.12 you have to use the Node.js that described in the |
@xuhdev what is the result of the |
My
|
Thanks for your feedback! According to our testing, Agent works flawlessly on the vast majority of Linux systems. There are some rare exceptions such as yours, and after hours of research, we still don't know in which ways such affected systems differ from the rest. We don't want to set the setuid bit of Given that you found a workaround, and that we can't proceed further with this, I'm closing this issue, but we'll keep watching it for new comments along with related issues, and try to solve this if it emerges again. |
Thanks! I will let you know if I noticed some consistent way to reproduce across distributions. |
I'm running into the same issue on my Debian system. uname -a output: |
This does look like a widespread issue on Debian, so reopening it. |
So the workaround in the electron bug electron/electron#17972 (comment) of allowing non-privileged users to clone namespaces using sysctl works for me.. sysctl kernel.unprivileged_userns_clone=1 but it's not the default and it requires root. This sysctl disables a debian/ubuntu? kernel patch that disables unprivilaged user namespaces by default the mainline kernel doesn't support this sysctl. |
I'm super glad and thankful you figured this out! Seems like this happens with security-hardened kernels. Recent Electron releases gave us (any many projects) a lot of headache due to their heavier sandboxing. We couldn't yet figure out how to best solve such issues, but we're on it. |
@firstnevyn Would you please give a try to the recently pre-released Agent 1.2.15? Please make sure to not run Agent as root and not use |
I can confirm this as resolved.. |
Awesome, thanks for your feedback! |
I can confirm this as well. Thanks! |
Ran into this issue with the 2.0.0 release on ArchLinux (2.0.0-1 https://aur.archlinux.org/packages/uhk-agent-appimage). Similar issue with other Electron apps (eg: visual-studio-code-bin, Cider) and those can be "easily" worked around with This may be something that can be patched in the Arch Linux's PKGBUILD during build time, but I thought I should raise the issue upstream first, let you know there seems to be a regression. |
@ert78gb Any ideas about fixing the mentioned issue? |
popping in here to attest to the possible regression with this issue on the 2.0.2 release when using ArchLinux with the latest hardened linux kernel. |
@ra0x1duk3 Cloud you test the https://drive.google.com/file/d/1uEe1g5kOQ3ZkUTfiDiSFkdUYIfiFTwh9/view?usp=sharing version? |
apologies for the delayed response, it's working on my end! thank you! |
No worries, thank you for the feedback |
On Debian 10, starting agent using either the released AppImage or
npm run electron
, the following error message will show up, and the app either doesn't start up or start up and do nothing (i.e., no configuration can be read from or written to keyboard):Run the following in the source tree (as suggested in electron/electron#17972 (comment)) and then
npm run electron
will succeed without error:The text was updated successfully, but these errors were encountered: