mviereck / x11docker

Run GUI applications and desktops in docker and podman containers. Focus on security.
MIT License
5.62k stars 378 forks source link

Questions about --hostwayland security #173

Closed D4Delta closed 5 years ago

D4Delta commented 5 years ago

I understands that --hostdisplay is not good for security, but what are the security concern of --hostwayland ?

Context: I'm currently using KDE Plasma, but I'm considering switching to Sway to reduce the overhead caused by multiple containers running with --xpra.

mviereck commented 5 years ago

I don't have security concerns about --hostwayland. The Wayland protocol is designed to isolate application windows from each other. This in opposite to the X11 protocol that allows access to other X applications running on the same X server (--hostdisplay).

This goes for the protocol design. It is always possible that there is a security leak somewhere in the software implementation, i.e. in the Wayland libraries. This is something x11docker cannot control and would affect each setup I can imagine.

tl;dr: I have no concerns about --hostwayland except the fact that software is never 100% secure.

Context: I'm currently using KDE Plasma, but I'm considering switching to Sway to reduce the overhead caused by multiple containers running with --xpra.

D4Delta commented 5 years ago

Thank you for the quick and insightful answer!