Re: user service dependency on udev's uaccess rules

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





On Mon, Nov 25, 2024 at 5:21 AM Mantas Mikulėnas <grawity@xxxxxxxxx> wrote:
On Mon, Nov 25, 2024 at 12:57 PM Lennart Poettering <lennart@xxxxxxxxxxxxxx> 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.

[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux