Conty: Errors in ChromeOS dev mode
I can run it from root after doing this:
xhost +local:
sudo -s
mount -o remount,exec /tmp
ALLOW_ROOT=1 ./conty.sh glxinfo
However if I try to run as a regular user I get this:
./conty.sh steam
Running Conty
bwrap: Failed to mount tmpfs: Operation not permitted
(This happens for trying any app.)
In Chromebrew we have been able to use bwrap as a regular user by using a wrapper script:
sudo chown root "/usr/local/bin/bwrap.elf"
sudo chmod +s "/usr/local/bin/bwrap.elf"
/usr/local/bin/bwrap.elf "$@"
sudo chown chronos "/usr/local/bin/bwrap.elf"
Any chance of using sudo with bwrap if the bwrap command fails?
We don’t have the option of using unprivileged user namespaces, as Google has disabled that in the kernels on these devices.
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 17 (7 by maintainers)
Good! Just to note, there is no builtin firefox in the lite version of Conty, so it uses firefox binary from your PATH, maybe that’s the problem, not sure though.
Success!
I guess there is a better solution than running as root. Since you have bwrap wrapper in your /usr/local/bin (which is present in your PATH env variable, right?), you can make Conty to use bwrap (wrapper script in this case) and squashfuse installed on your system instead of the builtin ones.
It should work without root rights after that, cosidering you have both bwrap and squashfuse installed. Do you have squashfuse in ChromeOS? If no, you can take it from the utils.tar uploaded in this repo.
I can also add an option to use just system-wide bwrap or just system-wide squashfuse instead of both of them at the same time, this should make running Conty easier for ChromeOS users, if there is no easy way to install squashfuse in ChromeOS.