NativePHP / laravel

Laravel wrapper for the NativePHP framework
https://nativephp.com
MIT License
3.14k stars 163 forks source link

The SUID sandbox #322

Open avazquez-bit opened 4 months ago

avazquez-bit commented 4 months ago

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

medilies commented 3 months ago

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