2010/11/24 Dan Nicholson <dbn.lists@xxxxxxxxx>: > Every distribution does not have the plugdev group, though. Yeah that shouldn't be hardcoded. The hotplug.c program already supports supplying a custom actions string for those who need it, like distro packagers. > If we know that all mtp devices have the environment variable > ID_MTP_DEVICE, then it's very easy to add a rule controlling the > permissions. > > ENV{ID_MTP_DEVICE}=="?*", MODE="666" Yep that's how to do it. > Even better, if we let the udev people know that there is some > attribute like ID_MTP_DEVICE that's set for all mtp devices, they can > add a rule for udev-acl, which dynamically updates the ACLs on all > distros. See how the gphoto2 devices are handled here: > > http://git.kernel.org/?p=linux/hotplug/udev.git;a=blob;f=extras/udev-acl/70-acl.rules;h=e3ff31c22e5c96af6478a715aa39928f7ba025bd;hb=HEAD > In fact, it seems they already have a rule to manage the ACLs on > PTP/MTP devices. What do you think? Yes! It already recognize ID_MEDIA_PLAYER it seems? And I added that to all of them... Linus -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html