[PATCH] unstable/drm-lease: DRM lease protocol support

Drew DeVault sir at cmpwn.com
Tue Jul 2 17:33:25 UTC 2019


On Fri Jun 28, 2019 at 10:37 AM Simon Ser wrote:
> I'm now wondering if DRM leasing is that much different from xdg-shell
> set_fullscreen requests.
> 
> Is DRM leasing that much of a big deal regarding security? (Especially
> if the compositor has a policy to lease only non-desktop outputs)
> 
> One thing I'm concerned about is buffers read access. Someone posted a
> Weston patch [1] to remove framebuffers when switching VTs, because the
> new master could potentially read them.
> 
> Would this type of thing be possible with DRM leases? Could a lessee
> read buffers from the compositor's connectors?
> 
> [1]: https://gitlab.freedesktop.org/wayland/weston/merge_requests/175

I tested this by acquiring a DRM lease and then attempting to mmap a
framebuffer which was not included in the lease - EPERM.


More information about the wayland-devel mailing list