Bug 1270106

Summary: udev rules need to be fixed (obsolete plugdev->uaccess tag)
Product: [Fedora] Fedora Reporter: Przemek Klosowski <przemek>
Component: openocdAssignee: Jiri Kastner <cz172638>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 22CC: chitlesh, cz172638, dnglaze, jdisnard, LotharLutz
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-10-12 17:21:43 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:
Attachments:
Description Flags
60-openocd.rules file using uaccess tag none

Description Przemek Klosowski 2015-10-09 01:48:37 UTC
Description of problem:
openOCD uses the obsolete group mechanism in udev rules: assigns device files to be R/W by group plugdev, which does not exist on Fedora. The correct action is to use systemd session mechanism that tags the devices as 'uaccess', which then creates ACLs enabling R/W for the current logged-in console user. 

The udev rules file needs to be renamed---it has to be ordered before 70-uaccess.rules


Version-Release number of selected component (if applicable):
openocd-0.8.0-6.fc22.x86_64


How reproducible: very


Steps to Reproduce:
1.grep plugdev /usr/lib/udev/rules.d/99-openocd.rules

Actual results: see many rules using plugdev

Expected results: no plugdev use

Comment 1 Przemek Klosowski 2015-10-09 01:51:09 UTC
The fix is simple: replacing the old GROUP/MODE settings with  TAG+="uaccess"
The /usr/lib/udev/rules.d/99-openocd.rules file must be ordered before 70-uaccess.rules, so I propose renaming it to 60-openocd.rules . I enclose the new file, which should be sent upstream.

Comment 2 Przemek Klosowski 2015-10-09 01:52:16 UTC
Created attachment 1081152 [details]
60-openocd.rules file using uaccess tag

Comment 3 Przemek Klosowski 2015-10-09 01:53:17 UTC
Of course /usr/lib/udev/rules.d/99-openocd.rules needs to be deleted, too.

Comment 4 Przemek Klosowski 2015-10-09 14:38:28 UTC
BTW, I filed a related bug for libsigrok
https://bugzilla.redhat.com/show_bug.cgi?id=1270102

Comment 5 Jiri Kastner 2015-10-12 17:21:43 UTC

*** This bug has been marked as a duplicate of bug 1177996 ***