Skip to content
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

Bug: chrome-sandbox owner and mode #231

Open
truemoroz opened this issue May 29, 2024 · 6 comments
Open

Bug: chrome-sandbox owner and mode #231

truemoroz opened this issue May 29, 2024 · 6 comments
Labels
bug Something isn't working

Comments

@truemoroz
Copy link

truemoroz commented May 29, 2024

Describe the bug
Cannot run Heynote on Kubuntu 24.04

To Reproduce
Steps to reproduce the behavior:

~/dist/Heynote_1.7.0_x86_64.appimage
[19821:0529/124154.856511:FATAL:setuid_sandbox_host.cc(158)] The SUID sandbox helper binary was found, but is not configured correctly. Rather than run without sandboxing I'm aborting now. You need to make sure that /tmp/.mount_HeynotNXMb1x/chrome-sandbox is owned by root and has mode 4755.

Expected behavior
To be able to start app

  • OS: Kubuntu
  • Version 24.04

Additional context
Here's how you can run the AppImage with the --no-sandbox option:
Heynote_1.6.0_x86_64.appimage --no-sandbox

Please note that this is a temporary workaround and not a permanent solution. The best course of action would be to contact the maintainers of the AppImage and ask them to fix the issue.

@heyman
Copy link
Owner

heyman commented May 29, 2024

I don't run desktop Linux myself, but some quick googling suggests two workarounds (electron/electron#17972):

  1. Starting the AppImage with --no-sandbox
  2. sysctl kernel.unprivileged_userns_clone=1 (I don't know the impact of this, but it sounds like it might make the system less secure)

If anyone knows how this can be fixed in Heynote, I'd be happy to merge such fix.

@heyman heyman added the bug Something isn't working label May 29, 2024
@heyman
Copy link
Owner

heyman commented May 29, 2024

Could you try the following build and see if it fixed the problem?

https://github.com/heyman/heynote/actions/runs/9282799617/artifacts/1547452521

@heyman
Copy link
Owner

heyman commented Jun 3, 2024

Would you mind testing the build I made for you @truemoroz and see if it fixes it (it's this branch: https://github.com/heyman/heynote/tree/suid-sandbox-fix)?

@truemoroz
Copy link
Author

./Heynote_1.7.0_x86_64.AppImage        
[217518:0605/114039.689536:FATAL:setuid_sandbox_host.cc(158)] The SUID sandbox helper binary was found, but is not configured correctly. Rather than run without sandboxing I'm aborting now. You need to make sure that /tmp/.mount_Heynot1MCJ1Q/chrome-sandbox is owned by root and has mode 4755.
[1]    217518 trace trap (core dumped)  ./Heynote_1.7.0_x86_64.AppImage

I have the same error

@heyman
Copy link
Owner

heyman commented Jun 5, 2024

Okay 🙁, then I would probably need a linux desktop machine where I could reproduce it in order to debug it.

Thanks for checking!

@rambit
Copy link

rambit commented Jul 5, 2024

It is a generic issue and not only Heynote. I get the same error with theia-ide.org AppImage. My kernel.unprivileged_userns_clone was already 1 As can be checked with sysctl kernel.unprivileged_userns_clone as mentioned on https://docs.appimage.org/user-guide/troubleshooting/electron-sandboxing.html

The error says: You need to make sure that /tmp/.mount_HeynotNXMb1x/chrome-sandbox is owned by root and has mode 4755. but that mount folder is created when you run the app, so I guess it means that /tmp needs those permissions.

https://askubuntu.com/a/1512419 mentions a solution where you set nosuid on /tmp in fstab. As I was upgrading to Ubuntu 24.04 from 23.10 it makes me wonder if the update forgets to update permissions for /tmp which a fresh install might do when creating it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants