* Re: Processed: Re: Bug#368893: udev fails to set permissions due to /etc/udev/libgphoto2.rules
@ 2006-05-27 21:18 Frederic Peters
0 siblings, 0 replies; only message in thread
From: Frederic Peters @ 2006-05-27 21:18 UTC (permalink / raw)
To: linux-hotplug
Hello, [I'm Debian libgphoto2 maintainer]
Marco d'Itri wrote:
> > In order to summarize libgphoto2 udev rules now looks like
> >
> > ACTION!="add", GOTO="libgphoto2_rules_end"
> >
> > # then lots of lines like this one (cr added for legibility):
> > SUBSYSTEM="usb_device", SYSFS{idVendor}="0553",
> > SYSFS{idProduct}="0202", MODE="0660", GROUP="camera"
> >
> > # with also a generic rule for PTP cameras:
> > SYSFS{bInterfaceClass}="06", SYSFS{bInterfaceSubClass}="01",
> > SYSFS{bInterfaceProtocol}="01", MODE="0660", GROUP="camera"
> This is a not specific enough rule (it should probably match on
> SUBSYSTEM="usb_device", you can check using
> udevinfo -a -p /sys/class/usb_device/...), but I am not sure if it can
> cause the rule to not match.
I can't find info about how to get access to "interface level"
variables from udev; for example on this camera, shortened lsusb
output:
Bus 001 Device 014: ID 04a9:3073 Canon, Inc. PowerShot A70 (ptp)
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.10
bDeviceClass 0 (Defined at Interface level)
[...]
Configuration Descriptor:
[...]
Interface Descriptor:
[...]
bInterfaceClass 6 Imaging
bInterfaceSubClass 1 Still Image Capture
bInterfaceProtocol 1 Picture Transfer Protocol (PIMA 15470)
[...]
I'd like to write a rule to match on this bInterfaceClass, so it would
match on future PTP devices, without any need to add their idVendor /
idProduc; is this possible ? How so ?
Thanks,
Frederic
-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid\x107521&bid$8729&dat\x121642
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-05-27 21:18 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-27 21:18 Processed: Re: Bug#368893: udev fails to set permissions due to /etc/udev/libgphoto2.rules Frederic Peters
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).