ChanServ changed the topic of #wayland to: https://wayland.freedesktop.org | Discussion about the Wayland protocol and its implementations, plus libinput | register your nick to speak
fmuellner has quit [Ping timeout: 480 seconds]
slattann has joined #wayland
slattann has quit []
co1umbarius has joined #wayland
columbarius has quit [Ping timeout: 480 seconds]
ahartmetz has quit [Quit: Konversation terminated!]
pedrocr has quit [Remote host closed the connection]
<aloisw>
Hello, I'd be interested about the current state of security on Wayland. Basically, is it acceptable to hand the wayland socket to a potentially hostile application today?
<kennylevinsen>
you would need to define your threat model first
<jadahl>
it also very much depends on whether what interfaces the compositor exposes on that socket
<aloisw>
I have an untrusted application running inside a sandbox. Does exposing the Wayland socket allow sandbox escape?
<kennylevinsen>
without a threat model, both "it is never acceptable to run potentially hostile code" and "machine doesn't matter so YOLO" are valid answers...
<kennylevinsen>
It is not impossible that it leads to a sandbox escape either through bugs in the compositor, or as a more problematic vector, through bugs in other wayland clients that you ran outside of your sandbox triggered by e.g. copy/paste data transfers.
<kennylevinsen>
restricting protocols available would limit the risk of the latter
<pq>
aloisw, it does not allow escape, unless the compositor exposes interfaces that could be used to escape. The minimum set of Wayland interfaces that all desktop apps depend on should be safe from Wayland perspective AFAIK. But, the app can still easily DoS the compositor as I don't think most compositors protect against e.g. too many protocol objects exhausting memory.
ahartmetz has quit [Remote host closed the connection]
ahartmetz has joined #wayland
ahartmetz has quit [Remote host closed the connection]
<emersion>
kennylevinsen: new MRs for you to comment on :>
<grawity>
hey I remember libinput had debouncing but is that something I have to manually enable? my laptop's clickpad button is fine when pressing it, but tends to generate a lot of events when releasing