[systemd-devel] 70-uaccess.rules: add new ID_SDR_HW?

Alick Zhao alick9188 at gmail.com
Mon Jul 14 04:40:10 PDT 2014


Hi all,

I am recently playing with software
defined radio (SDR) hardwares (USRP, bladeRF, etc.),
and come across the plugdev group issue. It seems the best way is to
write a local rule
saying something like: [1]

  SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", \
    ATTRS{idVendor}=="xxxx", ATTRS{idProduct}=="yyyy" \
    ENV{ID_<some_name>}="zzzz"

and to rely 70-uaccess.rules [2] to grant the permission.

However, it seems there is no proper ID for SDR hardware for the
moment, so I have to
write TAG+="uaccess" directly in local rule file. AFAIK it is not recommended.
So is it possible to add ID_SDR_HW in the 70-uaccess.rules file?
You may suggest a better name of course.

Besides, I see there are inconsistency of ENV{ID_<some_name>} in [2]
("*?" vs "?*").
Do they match different things? Hope you can clarify.

[1] https://bugzilla.redhat.com/show_bug.cgi?id=815093
[2] http://cgit.freedesktop.org/systemd/systemd/tree/src/login/70-uaccess.rules

Regards,
Alick


More information about the systemd-devel mailing list