Bug#822635: udev rules for USB device access effective at boot, but not on hotplug

Michael Biebl email at michaelbiebl.de
Mon Jan 22 17:10:58 GMT 2018


Hi Josh!

On Wed, 21 Dec 2016 20:15:12 +0100 Michael Biebl <biebl at debian.org> wrote:
> On Fri, 6 May 2016 18:12:27 -0500 Martin Pitt <mpitt at debian.org> wrote:
> > Control: tag -1 moreinfo
> > 
> > Hello Josh,
> > 
> > Josh Triplett [2016-04-25 13:48 -0700]:
> > > ~$ cat /etc/udev/rules.d/99-local-gnubby.rules
> > > SUBSYSTEMS=="usb", ATTRS{idVendor}=="1050", ATTRS{idProduct}=="0200", TAG+="uaccess"
> > >
> > > If I boot with the device attached, this seems to take effect:
> > >
> > > However, if I unplug and replug the device, this rule no longer seems to take
> > > effect:
> > 
> > The uaccess tag is evaluated in /lib/udev/rules.d/73-seat-late.rules,
> > thus 99-* is too late. Can you please move it to e. g.
> > 70-gnubby.rules? I'm fairly sure it will work then, but I'll keep the
> > bug open until you confirm, just in case.
> > 
> 
> The dump from Josh shows, that the uaccess udev property is properly
> set. So I don't think it's an udev rules ordering issue.
> 
> I think the problem rather is, that you are already logged in and the
> ACLs are only applied on login or when the session becomes active.
> 
> I assume if you log out and re-login after the hotplug, the ACL is
> properly applied?

Any updates on this bug report? Is there still something which needs to
be addressed on the systemd side? If so we need to further investigate
the issue.

Regards,
Michael


-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-systemd-maintainers/attachments/20180122/a13a67fe/attachment.sig>


More information about the Pkg-systemd-maintainers mailing list