Closed SyntheticBird45 closed 2 months ago
from what I know, that file should only be used for flatpak. are you using that mode?
I'm not using flatpak. I've first tried to use it by downloading github actions release. Then downloaded through AUR repository (but there is no difference its just a script downloading the latest CI release and placing it in a corresponding folder).
It's odd, it isn't meant to be only used for flatpak. I've (official) chromium, ungoogled chromium, brave an other electron apps installed on my linux and all of them come with chrome-sandbox SUID binary out of the box. Chrome have two way of sandboxing on linux:
In our case, my kernel do not have user namespaces enabled (for security reasons) and since the SUID binary isn't present, it can't isolate, thus requiring me to run without sandbox.
Just for confirmation I just tested copying the /usr/lib/chromium/chrome-sandbox utility in cromite directory and after giving it root:4755 cromite now start correctly and sandboxed
Workaround I found at the moment is:
# Copy chromium's chrome-sandbox to cromite directory
$ sudo cp /usr/lib/chromium/chrome-sandbox /usr/lib/cromite/
# Give it required permissions and ownership
$ sudo chown root:root /usr/lib/cromite/chrome-sandbox && sudo chmod 4755 /usr/lib/cromite/chrome-sandbox
Preliminary checklist
Can the bug be reproduced with corresponding Chromium version?
No
Are you sure?
Yes
Cromite version
127.0.6533.103
Device architecture
x64
Platform version
I prefer not to write it/No matter
Android Device model
None
Is the device rooted?
I prefer not to write it
Changed flags
no flags changed
Is this bug happening in an incognito tab?
Yes
Is this bug caused by the adblocker?
No
Is this bug a crash?
No
Describe the bug
Latest version of cromite (in release tab) do not contian the chrome_sandbox utility for sandboxing chromium. Despite being in linux workflow:
https://github.com/uazo/cromite/blob/888b4cfc7e6def136183313354b8794bce2ada9b/.github/workflows/build_cromite.yaml#L400
Added by this commit: https://github.com/uazo/cromite/commit/754f4cb92e3eb051730f95e2ac45db8f94df5e75
This result in an infamous:
This is surely what caused: https://github.com/uazo/cromite/issues/1241 Worth noting that Ubuntu's apparmor profile isn't equivalent to chrome-sandbox several protection mechanisms.
Tested on Arch Linux.
Steps to reproduce the bug
Expected behavior
Should launch without warning and have chrome://sandbox setup correctly
Screenshots
No response