Bug#822635: udev rules for USB device access effective at boot, but not on hotplug
Michael Biebl
biebl at debian.org
Wed Dec 21 19:15:12 GMT 2016
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?
--
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/20161221/64865b37/attachment.sig>
More information about the Pkg-systemd-maintainers
mailing list