[systemd-devel] Logind: how to access a device when you're not the session controller

Lennart Poettering lennart at poettering.net
Fri Sep 4 14:40:00 UTC 2020


On Di, 26.05.20 16:55, Pekka Paalanen (ppaalanen at gmail.com) wrote:

> Hi,
>
> I'm looking at letting Weston's 'meson test' run DRM-backend tests
> automatically and without the need of root privileges. I have a spare
> DRM device in my machine that is dedicated for this purpose, so I make
> my normal desktop environment not touch it. My problem is, is there any
> way to set up things so that logind would give Weston access to that
> DRM device while my normal desktop is active?

I am not aware of any.

> Any suggestions on what might work?

Other than patching logind with some new concept, no suggestion. Or
simply bypassing logind and opening the devices directly with root
privs? or test this in virtualization?

Lennart

--
Lennart Poettering, Berlin


More information about the systemd-devel mailing list