Hi,

Please see the previous discussion about this issue on bug 665:

http://sigrok.org/bugzilla/show_bug.cgi?id=665

In short, there is no rules file we can supply that will work for all
users on all distributions. My proposal was that we remove the rules
file entirely, and replace it with a machine readable list of VID/PID
pairs that libsigrok is interested in, along with a script to generate
udev rules files from this as well as similar things for other systems,
e.g. I think there is some list that has to be provided to Android for
it to allow PulseView to use USB devices on that platform.

I did some work on this about a year ago:
https://github.com/martinling/libsigrok/commits/remove-udev-rules

I believe someone else implemented a script to generate things from this
too, but I forget who it was or where they published it.


Martin

On Tue, Dec 27, 2016 at 01:02:21PM +0100, Gerhard Sittig wrote:
> 
> OpenOCD commit a5cff3acd377 adjusted their udev rules, motivated by
> https://lists.debian.org/debian-devel-announce/2016/11/msg00008.html
> which recommends switching from
> 
>   MODE="664", GROUP="plugdev"
> 
> to
> 
>   MODE="660", GROUP="plugdev", TAG+="uaccess"
> 
> The commit log (partially) reads:
> 
> | Modern desktop systems with systemd recommend this way to give users
> | access to devices. We change permissions to sane value along the way.
> 
> The change allows access to the devices by users which have
> physical access to the machine, while it prevents remote users
> from accessing the device.  The Debian note reads:
> 
> | Adding the uaccess tag to udev rules
> | ------------------------------------
> |
> |   Packages containing udev rules that use GROUP="plugdev" should also add
> |   TAG+="uaccess" so that all users that are physically present can access
> |   the relevant devices, instead of just users in the plugdev group
> |   (GROUP="plugdev"). Some packages use MODE="666" to allow all users
> |   (including remote users) to access devices. For almost all devices it is
> |   probably more appropriate to switch from MODE="666" to GROUP="plugdev",
> |   MODE="660", TAG+="uaccess" so that remote users cannot access local
> |   devices. Check the wiki page for USB gadgets[13] for more hints.
> |   There is a lintian warning in progress[14] for these issues.
> |
> |   -- Paul Wise & Petter Reinholdtsen
> |
> |   [13] https://wiki.debian.org/USB/GadgetSetup
> |   [14] https://bugs.debian.org/841670
> 
> 
> This is a web document with the actual commit that I could find,
> for those who don't have a local OpenOCD repo at hand:
> https://sourceforge.net/p/openocd/mailman/message/35569241/
> (sorry for the evil formatting).
> 
> 
> Is a similar change desirable for the libsigrok component?
> 
> 
> virtually yours
> Gerhard Sittig
> -- 
>      If you don't understand or are scared by any of the above
>              ask your parents or an adult to help you.
> 
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most 
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
> _______________________________________________
> sigrok-devel mailing list
> sigrok-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/sigrok-devel
> 



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
sigrok-devel mailing list
sigrok-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sigrok-devel

Reply via email to