Your message dated Wed, 12 Oct 2016 16:45:45 +0000
with message-id <e1bumf3-0002kn...@franck.debian.org>
and subject line Bug#839816: fixed in hackrf 2015.07.2-11
has caused the Debian Bug report #839816,
regarding libhackrf0: Missing ENV{ID_SOFTWARE_RADIO}="1" in udev rule block 
access for console users without the plugdev group
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
839816: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=839816
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: libhackrf0
Version: 2014.08.1-1
Severity: important

The udev rules for hackrf devices in
/lib/udev/rules.d/60-libhackrf0.rules do not work for logged in users if
the user information originate from LDAP (ie users that can not be a
member of the plugdev group).

I've investigated and got some help on #debian-devel, and the way this
is supposed to work with logind from systemd is that some file system
ACLs should grant access to the device in /dev/bus/usb/* when the device
is logged in.  The rules to set this up is in
/lib/udev/rules.d/70-uaccess.rules.  And for software defined radios, I
believe this should be triggered by using ENV{ID_SOFTWARE_RADIO}="1".

Please modify /lib/udev/rules.d/60-libhackrf0.rules to include this
environment setting like this:

  ATTR{idVendor}=="1d50", ATTR{idProduct}=="604b", 
SYMLINK+="hackrf-jawbreaker-%k", MODE="660", GROUP="plugdev", 
ENV{ID_SOFTWARE_RADIO}="1"
  ATTR{idVendor}=="1d50", ATTR{idProduct}=="6089", SYMLINK+="hackrf-one-%k", 
MODE="660", GROUP="plugdev", ENV{ID_SOFTWARE_RADIO}="1"
  ATTR{idVendor}=="1fc9", ATTR{idProduct}=="000c", SYMLINK+="nxp-dfu-%k", 
MODE="660", GROUP="plugdev", ENV{ID_SOFTWARE_RADIO}="1"

With this modification in place, the ACLs show up in /dev/ and I can
access the device as a normal user.

Here is the output from 'udevadm info /dev/bus/usb/003/026' with this
setting in place:

P: /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1.2
N: bus/usb/003/026
S: hackrf-one-3-1.2
E: BUSNUM=003
E: DEVLINKS=/dev/hackrf-one-3-1.2
E: DEVNAME=/dev/bus/usb/003/026
E: DEVNUM=026
E: DEVPATH=/devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1.2
E: DEVTYPE=usb_device
E: DRIVER=usb
E: ID_BUS=usb
E: ID_FOR_SEAT=usb-pci-0000_00_1a_0-usb-0_1_2
E: ID_MM_DEVICE_IGNORE=1
E: ID_MODEL=HackRF_One
E: ID_MODEL_ENC=HackRF\x20One
E: ID_MODEL_ID=6089
E: ID_PATH=pci-0000:00:1a.0-usb-0:1.2
E: ID_PATH_TAG=pci-0000_00_1a_0-usb-0_1_2
E: ID_REVISION=0100
E: ID_SERIAL=Great_Scott_Gadgets_HackRF_One_0000000000000000909864cxxxxxxxxx
E: ID_SERIAL_SHORT=0000000000000000909864xxxxxxxxxx
E: ID_SOFTWARE_RADIO=1
E: ID_USB_INTERFACES=:ffffff:
E: ID_VENDOR=Great_Scott_Gadgets
E: ID_VENDOR_ENC=Great\x20Scott\x20Gadgets
E: ID_VENDOR_FROM_DATABASE=OpenMoko, Inc.
E: ID_VENDOR_ID=1d50
E: MAJOR=189
E: MINOR=281
E: PRODUCT=1d50/6089/100
E: SUBSYSTEM=usb
E: TAGS=:seat:uaccess:
E: TYPE=0/0/0
E: USEC_INITIALIZED=18463410617

Without the setting the TAGS line is missing and logind fail to grant
access to the device.

-- 
Happy hacking
Petter Reinholdtsen

--- End Message ---
--- Begin Message ---
Source: hackrf
Source-Version: 2015.07.2-11

We believe that the bug you reported is fixed in the latest version of
hackrf, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 839...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
A. Maitland Bottoms <bott...@debian.org> (supplier of updated hackrf package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Tue, 11 Oct 2016 20:59:02 -0400
Source: hackrf
Binary: libhackrf-dev libhackrf0 hackrf
Architecture: source amd64
Version: 2015.07.2-11
Distribution: unstable
Urgency: medium
Maintainer: A. Maitland Bottoms <bott...@debian.org>
Changed-By: A. Maitland Bottoms <bott...@debian.org>
Description:
 hackrf     - Software defined radio peripheral - utilities
 libhackrf-dev - Software defined radio peripheral - development
 libhackrf0 - Software defined radio peripheral - runtime library
Closes: 834055 839816
Changes:
 hackrf (2015.07.2-11) unstable; urgency=medium
 .
   * update host code to v2015.07.2-134-gb9d333a
   * do not fail when udev is not available on freebsd (Closes: #834055)
   * use ENV{ID_SOFTWARE_RADIO}="1" in udev rules (Closes: #839816)
Checksums-Sha1:
 a3414d0c3b06da0254e612536931901d70503176 2079 hackrf_2015.07.2-11.dsc
 52d2c69feedf864301de159757fcbb83841d3744 18097680 
hackrf_2015.07.2-11.debian.tar.xz
 f81c82c7c60c673a5bd6dddd20db5666e07758be 48950 
hackrf-dbgsym_2015.07.2-11_amd64.deb
 50c7f0f2d62d9b277aa8fac41e97b532bc321edf 29330 hackrf_2015.07.2-11_amd64.deb
 faccd642af39ba718c854d37c451e898f45e78ec 12196 
libhackrf-dev_2015.07.2-11_amd64.deb
 c5c4a099f673cab5ec0538309c1ddc226bc66cd7 18514 
libhackrf0-dbgsym_2015.07.2-11_amd64.deb
 845b7aed44a8249ee0bbbb18a30b298af147668a 12660 
libhackrf0_2015.07.2-11_amd64.deb
Checksums-Sha256:
 2357c0ad218317a8500baaef44698189ae29ea1b987fdf5317d6335c048f3ac5 2079 
hackrf_2015.07.2-11.dsc
 969ceabb8c211c273c7c3535462a2769f8f19d65eadf6a6e868f90ed0ecf31f2 18097680 
hackrf_2015.07.2-11.debian.tar.xz
 fa38d8aeca4c68cebd0aac08a5734d2124191452413bd7de1c51b30933f48331 48950 
hackrf-dbgsym_2015.07.2-11_amd64.deb
 3f82c1e22b8e67aa7ccc8d16b92f54b89012ccb8b41572630f03eb5c85d9046e 29330 
hackrf_2015.07.2-11_amd64.deb
 0cec445bc4fc03d299339a7d067f24db6fc3d2b3b54b861639e6817cdcf2af59 12196 
libhackrf-dev_2015.07.2-11_amd64.deb
 c3d32ee003f3e5404366fb2bd2894b302c10258f63c1c54a69ac7ae53b94e557 18514 
libhackrf0-dbgsym_2015.07.2-11_amd64.deb
 4812adfcb1e6801642c7f687a52c011c4fddf1312b231d0eab3d4a496037bd7f 12660 
libhackrf0_2015.07.2-11_amd64.deb
Files:
 811254b439b557dbfa9ee897194b8841 2079 libs extra hackrf_2015.07.2-11.dsc
 47c1551d8cd30aa2b695ae02a2d67a22 18097680 libs extra 
hackrf_2015.07.2-11.debian.tar.xz
 e8f28308f91765ffe8cfe076ba0f7f80 48950 debug extra 
hackrf-dbgsym_2015.07.2-11_amd64.deb
 63f68e5fba9e2bf3057bfb18721142f7 29330 comm extra hackrf_2015.07.2-11_amd64.deb
 0bb514fae46f3c1617bbba4df594f779 12196 libdevel extra 
libhackrf-dev_2015.07.2-11_amd64.deb
 1cb8fd7c6bfe813f60a739100a7ea2c2 18514 debug extra 
libhackrf0-dbgsym_2015.07.2-11_amd64.deb
 e7d00ebf274985ac8ea887c00ecbfc80 12660 libs extra 
libhackrf0_2015.07.2-11_amd64.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBCAAGBQJX/j8CAAoJEFBB8YkfROCQZDMQAIoEo4LCVdsE8HjjYWNtKHHt
t2yIZcnmBUnGSymB9JRSnYwxAkvoajVu0aNDvThDTZJw3uYNyfCmZzkRrEdX3OF8
swZx8/a8zLm+ar55LGp+hRoCFVdr1yZ5vvjSgIEd2r7YXtxwfyNtXGU1KLQWXruA
+iLqWhHaTgi/+VtGgosbXJ6YtldPSfp5Aa8EjsPPcrHYUXRpTjnVWYYxKRmEmt6V
a6hKrWnyOYsImmDzAZIYPQHKuHdNLeBd5l1MvJllACvL09h02730w7xrP/nkhz6b
9xvapI8QJa6Sf86jekbpi5F6+d2iNLv9ktGJkkhzlQqeZqXqT10Y9xOzpaVJSoo7
6GqnnU1T4krl1+VI3gTobr6frHgMugeql43sshowygJwIpUIt7XTgGVcSulEfXnl
z+adEFFUFMXegpSp2fyBaqtISoRZEGUWxv9TkyDk6uu63+p1tNMgPlqT4T2O+IZG
G9BFwsnKMcJF2QeIxmfYcVURX1pDsJkEfeXfTXhC0ueBx9P+11YbJVOjpvJtzSeR
UHRKFzRAU+V+QOA2e6bAWZdWoKWkYxyAhu37+NMH+r77lOT95UDqnOfZR/D+/KLk
ysmQdyAU1emxK/LcFeHHikom2YTTdk72V6Lcbzd+qsF+v91GRlbVjIyGdPaAQmDW
Z2qILyDfb9lJffAr/R6t
=R2db
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to