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

The SUID sandbox helper binary was found, but is not configured correctly. #223

Closed
andreyddk opened this issue Jun 11, 2021 · 6 comments · Fixed by #251
Closed

The SUID sandbox helper binary was found, but is not configured correctly. #223

andreyddk opened this issue Jun 11, 2021 · 6 comments · Fixed by #251

Comments

@andreyddk
Copy link

andreyddk commented Jun 11, 2021

$ com.visualstudio.code --verbose [20:0611/093016.694054: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 /app/extra/vscode/chrome-sandbox is owned by root and has mode 4755.

$ com.visualstudio.code --version 1.57.0 b4c1bd0a9b03c749ea011b06c6d2676c8091a70c x64

$ flatpak --version Flatpak 1.11.1

Cant run vscode. How can i fix it?

@gasinvein
Copy link
Member

You can workaround this by running it with --no-sandbox, but it's probably unsafe and surely not a proper fix. We'll need to integrate zypak with VS Code to get a proper sandbox for electron.

@Vyshnav2255
Copy link

Vyshnav2255 commented Jun 12, 2021

Temporary Fix

People facing this issue can use this command to downgrade to the previous version
$ flatpak update --commit=dab8194db81dd9a593dacb1d484457a6ba2585787c7ee90f2a6ce417239dc9ef com.visualstudio.code

@barthalion
Copy link
Member

I have reverted the app to 1.56 for now.

@gasinvein
Copy link
Member

Upstream has added --no-sandbox back in microsoft/vscode#126028 (I've backported it to code-oss flatpak), so the next release will likely work again.

@byteshiva
Copy link

byteshiva commented Jul 9, 2021

I'm facing the same issue. After upgrade, I'm getting this error.

$ /usr/bin/flatpak run --branch=stable --arch=x86_64 --command=code --file-forwarding com.visualstudio.code --reuse-window @@ %F @@ --verbose 
[21:0709/081418.699432: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 /app/extra/vscode/chrome-sandbox is owned by root and has mode 4755.

vscode version

/usr/bin/flatpak run --branch=stable --arch=x86_64 --command=code --file-forwarding com.visualstudio.code --reuse-window @@ %F @@ -v 
1.58.0
2d23c42a936db1c7b3b06f918cde29561cc47cd6
x64

the above-mentioned temp fix works:( added --no-sandbox)

/usr/bin/flatpak run --branch=stable --arch=x86_64 --command=code --file-forwarding com.visualstudio.code --reuse-window @@ %F @@  --no-sandbox

@Quix0r
Copy link

Quix0r commented Aug 15, 2023

I guess some sysctl prevents this from happening, I also get the same error with heroic game launcher.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
6 participants