setting device permissions on connect
Hi there,
I have browsed the web and read the code and documentation, and still, I can't figure out how to do the following:
Upon connection of a device, say vendor 0xdead and product 0xbeef, I would like to chgrp and chmod the corresponding node in /proc/bus/usb/*/*. How do I do this?
Thanks!
Signature · 8 lines
martin; (greetings from the heart of the sun.)
\____ echo mailto: !#^."<*>"|tr "<*> mailto:" net@madduck
invalid/expired pgp subkeys? use subkeys.pgp.net as keyserver!
"it is impossible to foresee
the consequences of being clever."
-- cristopher stracheyQuoted 8 lines · martin f krafft
Hi there,
I have browsed the web and read the code and documentation, and still, I can't figure out how to do the following:
Upon connection of a device, say vendor
0xdeadand product0xbeef, I would like to chgrp and chmod the corresponding node in/proc/bus/usb/*/*. How do I do this?
The permissions of these files are controlled by mount options to usbfs. Unfortunaly for 2.6, these mount options do not work properly:
http://bugme.osdl.org/show_bug.cgi?id18
Hope this helps,
greg k-h
-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
also sprach Greg KH <[email protected]> [2004.01.16.2206 +0100]:
Quoted 2 lines
The permissions of these files are controlled by mount options to usbfs.
But I can chmod them from the command line. Thus I am simply wondering whether there's a hook in hotplug to be able to do this automatically on connection, based on the vendor/product ID combo.
Signature · 6 lines
martin; (greetings from the heart of the sun.) \____ echo mailto: !#^."<*>"|tr "<*> mailto:" net@madduck invalid/expired pgp subkeys? use subkeys.pgp.net as keyserver! officer, arrest that man! he's whistling a copyrighted song.
Quoted 7 lines · martin f krafft
also sprach Greg KH <[email protected]> [2004.01.16.2206 +0100]:
Quoted 2 lines
The permissions of these files are controlled by mount options to usbfs.
But I can chmod them from the command line. Thus I am simply wondering whether there's a hook in hotplug to be able to do this automatically on connection, based on the vendor/product ID combo.
Is this, what you want to do:
http://marc.theaimsgroup.com/?l=linux-hotplug-devel&m7062537312836&w=2
thanks,
Kay
-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
also sprach Kay Sievers <[email protected]> [2004.01.18.2234 +0100]:
Quoted 3 lines
Is this, what you want to do:
http://marc.theaimsgroup.com/?l=linux-hotplug-devel&m=107062537312836&w=2
Yes! Thank you!
Signature · 7 lines
martin; (greetings from the heart of the sun.)
\____ echo mailto: !#^."<*>"|tr "<*> mailto:" net@madduck
invalid/expired pgp subkeys? use subkeys.pgp.net as keyserver!
microsoft: for when quality, reliability, and security
just aren't that important!