How do you escape the sandbox through a Wayland or X11 socket? Do you have specific code examples?
Is there no way to safely run graphical applications in a bwrap sandbox? I thought Wayland was supposed to be better about this.
Is there no way to safely run graphical applications in a bwrap sandbox? I thought Wayland was supposed to be better about this.
On Wayland, assuming you don't have XWayland enabled and running, it depends on the specific compositor you are using and what Wayland protocols it supports.
Sandboxing GUI stuff on Wayland requires at the very least not having XWayland running, and also requires understanding what the compositor allows clients to do by default. Some compositors may have permission dialogues that prevent clients from doing stuff that you didn't expect.