Bug 1177996 - Wrong udev rules
Summary: Wrong udev rules
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: openocd
Version: 24
Hardware: All
OS: Unspecified
unspecified
medium
Target Milestone: ---
Assignee: Markus Mayer
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 1257283 1270106 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-01-01 09:20 UTC by souf_oued
Modified: 2019-01-09 12:33 UTC (History)
10 users (show)

Fixed In Version: openocd-0.9.0-4.fc24 openocd-0.9.0-4.fc23
Clone Of:
Environment:
Last Closed: 2016-05-20 17:39:38 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
patch for openocd.spec (1.16 KB, patch)
2015-01-01 09:45 UTC, souf_oued
no flags Details | Diff

Description souf_oued 2015-01-01 09:20:45 UTC
The current  99-openocd.rules uses "GROUP=plugdev" which is erroneous, please :
sed 's/MODE="664", GROUP="plugdev"/TAG+="uaccess"/'
mv 99-openocd.rules 69-openocd.rules

Thanks

Comment 1 souf_oued 2015-01-01 09:45:45 UTC
Created attachment 974929 [details]
patch for openocd.spec

Comment 2 steubens 2015-01-15 12:50:48 UTC
the rule number change is required, not a gag :]

'plugdev' may have worked done anywhere, but uaccess needs to be done before 73-seat-late.rules

thank you for the patch

Comment 3 Fedora Admin XMLRPC Client 2015-05-04 03:55:44 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 4 Philip Heron 2015-05-29 10:00:57 UTC
I've created custom udev rules for this, but it would be nice to get the packaged ones fixed.

Comment 5 Jiri Kastner 2015-06-05 15:06:29 UTC
submitted for review - http://openocd.zylin.com/#/c/2804/

Comment 6 Jaroslav Škarvada 2015-08-26 16:12:49 UTC
Please fix in Fedora, I am seeing now the following error in the journal (it's highlighted in red color):

srp 26 16:19:43 yarda systemd-udevd[753]: starting version 219
srp 26 16:19:43 yarda systemd-udevd[753]: specified group 'plugdev' unknown

Comment 7 Jiri Kastner 2015-10-12 17:13:46 UTC
*** Bug 1257283 has been marked as a duplicate of this bug. ***

Comment 8 Jiri Kastner 2015-10-12 17:21:43 UTC
*** Bug 1270106 has been marked as a duplicate of this bug. ***

Comment 9 Fedora End Of Life 2015-11-04 15:20:30 UTC
This message is a reminder that Fedora 21 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 21. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '21'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 21 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 10 Jiri Kastner 2015-11-27 22:01:07 UTC
problem seems be more complicated, as openocd is not the only one package, which keeps own udev rules for ftdi devices.
at least 2 other packages are using plugdev for same vendor:product - flashrom, libsigrok

Comment 11 Przemek Klosowski 2015-11-30 19:28:09 UTC
Right, and I opened similar bug 1270102 for sigrok; I encourage everyone to apply this simple fix. Plugdev simply is imcompatible with Fedora.

Comment 12 Jiri Kastner 2015-12-01 11:48:25 UTC
(In reply to Przemek Klosowski from comment #11)
> Right, and I opened similar bug 1270102 for sigrok; I encourage everyone to
> apply this simple fix. Plugdev simply is imcompatible with Fedora.

problem is that libftdi, flashrom, libsigrok and opencd have overlapping entries for same ftdi partnumbers

Comment 13 Jan Kurik 2016-02-24 15:35:32 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 24 development cycle.
Changing version to '24'.

More information and reason for this action is here:
https://fedoraproject.org/wiki/Fedora_Program_Management/HouseKeeping/Fedora24#Rawhide_Rebase

Comment 14 Ward Wouts 2016-04-24 09:09:31 UTC
This bug is also present on Fedora 23. Once openocd is installed USB serial devices get the wrong permissions.

_Without_ openocd installed:
$ ls -l /dev/ttyUSB0
crw-rw----. 1 root dialout 188, 0 Apr 24 10:56 /dev/ttyUSB0

_With_ openocd installed:
$ ls -l /dev/ttyUSB0 
crw-rw-r--. 1 root root 188, 0 Apr 24 10:50 /dev/ttyUSB0

The initially provided fix works fine. After running:

$ sudo sed -i 's/MODE="664", GROUP="plugdev"/TAG+="uaccess"/' /usr/lib/udev/rules.d/99-openocd.rules
$ sudo udevadm control --reload

Devices do get the correct permissions.

Any chance of giving this bug a higher priority? (I do realise that everyone wants their pet bug fixed first, but here the solution is already provided.)

Thanks for all the hard work

Comment 15 Przemek Klosowski 2016-04-25 15:56:34 UTC
Re. comment 12, sigrok has this bug fixed, and libftdi uses uaccess so I think also has this fixed, so it's just flashrom that still uses plugdev. I opened a bug against flashrom ( https://bugzilla.redhat.com/show_bug.cgi?id=1330205 )

The sigrok bug has been fixed in January ( https://bugzilla.redhat.com/show_bug.cgi?id=1270102 ) with no fallout, so I think it's OK to apply it in openocd, without waiting for flashrom.

Comment 16 Markus Mayer 2016-05-13 19:28:42 UTC
I will push a fixed version of openocd to the update system soon. Would you mind testing it and reply to the bug report or giving positiv karma.


Thank you for your hard work and the patients...

Comment 17 Fedora Update System 2016-05-13 19:49:35 UTC
openocd-0.9.0-4.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2016-dad992a5cd

Comment 18 Fedora Update System 2016-05-13 19:49:46 UTC
openocd-0.9.0-4.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2016-418faaba64

Comment 19 Fedora Update System 2016-05-15 06:56:27 UTC
openocd-0.9.0-4.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-dad992a5cd

Comment 20 Fedora Update System 2016-05-16 15:23:44 UTC
openocd-0.9.0-4.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-418faaba64

Comment 21 Fedora Update System 2016-05-20 17:39:33 UTC
openocd-0.9.0-4.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.

Comment 22 Fedora Update System 2016-05-26 10:56:31 UTC
openocd-0.9.0-4.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.


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