Bug 1270106 - udev rules need to be fixed (obsolete plugdev->uaccess tag)
Summary: udev rules need to be fixed (obsolete plugdev->uaccess tag)
Keywords:
Status: CLOSED DUPLICATE of bug 1177996
Alias: None
Product: Fedora
Classification: Fedora
Component: openocd
Version: 22
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jiri Kastner
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-10-09 01:48 UTC by Przemek Klosowski
Modified: 2019-01-09 12:27 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2015-10-12 17:21:43 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
60-openocd.rules file using uaccess tag (3.73 KB, text/plain)
2015-10-09 01:52 UTC, Przemek Klosowski
no flags Details

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 ***


Note You need to log in before you can comment on or make changes to this bug.