Hi there! I was able to install Brave in PureOS, but can’t get it to launch.
In the terminal I get this message:
evf@evf-pc:~$ brave
[6464:6464:1016/233709.960290:FATAL:zygote_host_impl_linux.cc(107)] No usable sandbox! Update your kernel or see https://chromium.googlesource.com/chromium/src/+/master/docs/linux_suid_sandbox_development.md for more information on developing with the SUID sandbox. If you want to live dangerously and need an immediate workaround, you can try using --no-sandbox.
Aborted
But when I try to take care of the sandbox issue using the instructions Brave directs you to from their GitHub page to this page…
…it still doesn’t work after rebooting. If I click on the Brave icon it will show like it’s loading in the panel but then that disappears and poof, nada.
Try with cat /etc/sysctl.d/00-local-userns.conf if it’s blank you didn’t enable user namespace in kernel.
Try again: sudo su
Type your password and then do: echo 'kernel.unprivileged_userns_clone=1' > /etc/sysctl.d/00-local-userns.conf service procps restart
I think you speak Spanish, if you don’t understand something you can ask me in Spanish.
In addition to enabling user creation of user namespaces, you would need to do one of the following:
Create AppArmor profiles for Snap and Brave
Wait for someone else (Purism) to create AppArmor profiles
Disable AppArmor
Run Brave without the Sandbox [not tested]
3 and 4 are pretty insecure. 1 and 2 should be your first choice, but I haven’t seen an AppArmor profile for Snap/Brave.
The process for creating one doesn’t look too bad. Basically, you just run a trusted instance of Brave with AppArmor disabled, record all of the syscalls it makes, and add those to the whitelist AppArmor uses. I haven’t gotten around to trying this, however.