[systemd-devel] udev "uaccess" tag does not support "hotplug" for some devices

Robert Milasan rmilasan at suse.cz
Wed Aug 19 05:06:30 PDT 2015


On Wed, 19 Aug 2015 17:45:28 +0800
"Tom Yan" <tom.ty89 at gmail.com> wrote:

> Hi all!
> 
> So I added the following rules:
> [tom at localhost ~]$ grep . /etc/udev/rules.d/*
> /etc/udev/rules.d/uas.rules:DRIVERS=="uas", TAG+="uaccess"
> /etc/udev/rules.d/usb-storage.rules:DRIVERS=="usb-storage",
> TAG+="uaccess"
> 

I think using DRIVERS is incorrect, but as I dont have all info.

> The rules basically works, but it doesn't support "hotplug", that is,
> I have to re-login for newly plugged devices to get the ACLs, and I
> have to do that as well if I replugged the device after I logged in.
> 
> However, it doesn't seem to be a universal limitation, because it does
> support "hotplug" for my SATA optical drive. I enabled hotplug of that
> SATA port in BIOS, unplugged the SATA cable, made sure "cdrom"
> (symlink) and "sr0" are no longer in /dev, then plugged it in again,
> the ACLs remains. I also tried to boot without the optical drive
> connected, and plugged in after login, it also works fine.

Because the rule is different, not implemented the same way as you did.

> 
> So could it be a bug of udev or logind, or something wrong with
> certain kernel drivers?
> _______________________________________________
> systemd-devel mailing list
> systemd-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/systemd-devel



-- 
Robert Milasan

L3 Support Engineer
SUSE Linux (http://www.suse.com)
email: rmilasan at suse.com
GPG fingerprint: B6FE F4A8 0FA3 3040 3402  6FE7 2F64 167C 1909 6D1A


More information about the systemd-devel mailing list