Bug 1321424

Summary: root:root ownership of USB device prevents access by non-root daemons
Product: [Fedora] Fedora Reporter: Benji Wiebe <benjiwiebe>
Component: rtl-sdrAssignee: Jaroslav Škarvada <jskarvad>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 23CC: jskarvad
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: rtl-sdr-0.5.3-6 rtl-sdr-0.5.3-6.fc24 rtl-sdr-0.5.3-6.fc23 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-04-04 17:26:00 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1317939    

Description Benji Wiebe 2016-03-26 20:59:54 UTC
Description of problem: I am working on packaging dump1090, which uses an RTL-SDR. dump1090 does not need to be run as root, as long as it has permission to access the RTL-SDR usb device. However, the udev rules do not assign a group to the USB device, so either dump1090 must run as root, or dump1090 must provide another overriding udev entry, or rtl-sdr must provide a better udev entry. I'd prefer the problem be fixed in rtl-sdr.


Steps to Reproduce:
1. Plug in RTL-SDR
2. Look at ownership of the USB special device file corresponding to RTL-SDR

Actual results:
Ownership is root:root.


Expected results:
Ownership would be root:rtlsdr (or some other group created by rtl-sdr).

Comment 1 Jaroslav Škarvada 2016-03-29 08:22:31 UTC
Is it server or tool run by regular user? In the latter case it should work out of the box, because it uses uaccess.

Comment 2 Jaroslav Škarvada 2016-03-29 08:25:09 UTC
(In reply to Jaroslav Škarvada from comment #1)
> Is it server or tool run by regular user? In the latter case it should work
> out of the box, because it uses uaccess.

I.e.:
$ dump1090 --interactive

Should work out of the box.

But if you intend to provide systemd service file for it, then we need a group.

Comment 3 Jaroslav Škarvada 2016-03-29 08:31:01 UTC
Or your package with service can provide udev rule/policy for it, i.e.:

Allowing ENV{ID_SOFTWARE_RADIO} access for username your service is running as.

Comment 4 Jaroslav Škarvada 2016-03-29 09:48:39 UTC
Re-introduced rtlsdr group for usage with servers/services.

Comment 5 Fedora Update System 2016-03-29 10:18:55 UTC
rtl-sdr-0.5.3-6.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2016-961ba3853b

Comment 6 Fedora Update System 2016-03-29 10:19:40 UTC
rtl-sdr-0.5.3-6.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2016-d2a273c87d

Comment 7 Fedora Update System 2016-03-30 00:26:10 UTC
rtl-sdr-0.5.3-6.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-d2a273c87d

Comment 8 Fedora Update System 2016-03-30 00:28:02 UTC
rtl-sdr-0.5.3-6.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-961ba3853b

Comment 9 Benji Wiebe 2016-03-30 04:10:26 UTC
Yes, it is a daemon program that needs this. Adding an rtlsdr group should fix it, thanks! As soon as I can I'll test it and make sure it works.

Comment 10 Fedora Update System 2016-04-04 17:25:58 UTC
rtl-sdr-0.5.3-6.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.

Comment 11 Fedora Update System 2016-04-07 15:52:20 UTC
rtl-sdr-0.5.3-6.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.