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 #322

Open
avazquez-bit opened this issue Jun 7, 2024 · 3 comments
Open

The SUID sandbox #322

avazquez-bit opened this issue Jun 7, 2024 · 3 comments
Labels
bug Something isn't working linux

Comments

@avazquez-bit
Copy link

What were you trying to do?

Try to execute installed app

What happened?

In previous versions I can build, install and execute the applications directly of appImage file or .deb installation and then execute, but recently I've build an app install it and when try to execute the icon appears in menu bar, and after a few second it disappears, so I try again but this time with appImage file throw terminal, i I've got next error message

[4559:0607/135557.518633: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_Samva n5nTSy/chrome-sandbox is owned by root and has mode 4755. Trace/breakpoint trap (core dumped)

I have to mention this happens before for native:serve command, but I could solve this by setitng up chrome-sandbox ins vendor folder, but this is for installed app

I could solve it, by executing appImage with --no-sandbox argument, but that is not the idea.

In some investigations I've found this could be handled by electron building, but that process run automatically when run native:build, so if there is a way to avoid this throw a param command or code, I'll be tank you

How to reproduce the bug

execute installed app in linux

Package Versions

0.6.3

PHP Version

8.3.6

Laravel Version

11.10

Node Version

18.20.2

Which operating systems have you seen this occur on?

Linux

OS version

Ubbuntu 24.04 LTS with budgie (10.9.1)

Notes

No response

@avazquez-bit avazquez-bit added the bug Something isn't working label Jun 7, 2024
@medilies
Copy link

I faced the same issue now on:

Package Versions

0.6.3

PHP Version

8.1.29

Laravel Version

10.48.3

Node Version

20.15.0

Which operating systems have you seen this occur on?

Linux

OS version

Ubuntu Desktop 24.04 LTS

@simonhamp simonhamp added the linux label Aug 6, 2024
@simonhamp
Copy link
Member

Please update to the latest versions of NativePHP's dependencies and try again

@dougkusanagi
Copy link

dougkusanagi commented Nov 22, 2024

I'm having the same issue using the sabe OS version. Tried to update vendor/nativephp/electron/resources/js it changed 32 packages but doesn't fixed at all. Changing the owner and permissions fixed.

sudo chown root:root vendor/nativephp/electron/resources/js/node_modules/electron/dist/chrome-sandbox
sudo chmod 4755 vendor/nativephp/electron/resources/js/node_modules/electron/dist/chrome-sandbox

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

No branches or pull requests

4 participants