[systemd-devel] user service dependency on udev's uaccess rules

Michael Kilburn crusader.mike at gmail.com
Mon Nov 25 16:28:18 UTC 2024


On Mon, Nov 25, 2024 at 5:21 AM Mantas Mikulėnas <grawity at gmail.com> wrote:

> On Mon, Nov 25, 2024 at 12:57 PM Lennart Poettering <
> lennart at poettering.net> wrote:
>
>> ...
>> "uaccess" ḿeans access to devices can come and go any time, as the
>> user switches sessions, as sessions come and go. This means programs
>> which want access to such devices need to be written with this in
>> mind: watch udev events, and try to reopen the devices whenever you
>> receive an event for the relevant audio device and access is
>> permitted. (logind will re-retrigger relevant devices whenever the fg
>> session changes, so that the udev rules are rerun and apps are
>> notified about the new situation via udev events)
>>
>
> I don't see logind doing that here. It seems to only set the new ACLs
> directly (devnode_acl_all() in seat.c) but there are no uevents that I
> could see during a VT switch.
>

Does logind do smth after the ACL update is complete? Something that could
be used in systemd unit definition as a dependency (to wait for)...

Regards,
Michael.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20241125/238a215f/attachment-0001.htm>


More information about the systemd-devel mailing list