linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* setting device permissions on connect
@ 2004-01-16 11:15 martin f krafft
  2004-01-16 21:06 ` Greg KH
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: martin f krafft @ 2004-01-16 11:15 UTC (permalink / raw)
  To: linux-hotplug

[-- Attachment #1: Type: text/plain, Size: 646 bytes --]

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!

-- 
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 strachey

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: setting device permissions on connect
  2004-01-16 11:15 setting device permissions on connect martin f krafft
@ 2004-01-16 21:06 ` Greg KH
  2004-01-18 21:20 ` martin f krafft
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Greg KH @ 2004-01-16 21:06 UTC (permalink / raw)
  To: linux-hotplug

On Fri, Jan 16, 2004 at 12:15:10PM +0100, martin f krafft wrote:
> 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?

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?id\x1418

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
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: setting device permissions on connect
  2004-01-16 11:15 setting device permissions on connect martin f krafft
  2004-01-16 21:06 ` Greg KH
@ 2004-01-18 21:20 ` martin f krafft
  2004-01-18 21:34 ` Kay Sievers
  2004-01-19 16:21 ` martin f krafft
  3 siblings, 0 replies; 5+ messages in thread
From: martin f krafft @ 2004-01-18 21:20 UTC (permalink / raw)
  To: linux-hotplug

[-- Attachment #1: Type: text/plain, Size: 602 bytes --]

also sprach Greg KH <greg@kroah.com> [2004.01.16.2206 +0100]:
> 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.

-- 
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.

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: setting device permissions on connect
  2004-01-16 11:15 setting device permissions on connect martin f krafft
  2004-01-16 21:06 ` Greg KH
  2004-01-18 21:20 ` martin f krafft
@ 2004-01-18 21:34 ` Kay Sievers
  2004-01-19 16:21 ` martin f krafft
  3 siblings, 0 replies; 5+ messages in thread
From: Kay Sievers @ 2004-01-18 21:34 UTC (permalink / raw)
  To: linux-hotplug

On Sun, Jan 18, 2004 at 10:20:16PM +0100, martin f krafft wrote:
> also sprach Greg KH <greg@kroah.com> [2004.01.16.2206 +0100]:
> > 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&m\x107062537312836&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
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: setting device permissions on connect
  2004-01-16 11:15 setting device permissions on connect martin f krafft
                   ` (2 preceding siblings ...)
  2004-01-18 21:34 ` Kay Sievers
@ 2004-01-19 16:21 ` martin f krafft
  3 siblings, 0 replies; 5+ messages in thread
From: martin f krafft @ 2004-01-19 16:21 UTC (permalink / raw)
  To: linux-hotplug

[-- Attachment #1: Type: text/plain, Size: 503 bytes --]

also sprach Kay Sievers <kay.sievers@vrfy.org> [2004.01.18.2234 +0100]:
> Is this, what you want to do:
> 
>   http://marc.theaimsgroup.com/?l=linux-hotplug-devel&m=107062537312836&w=2

Yes! Thank you!

-- 
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!

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2004-01-19 16:21 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-01-16 11:15 setting device permissions on connect martin f krafft
2004-01-16 21:06 ` Greg KH
2004-01-18 21:20 ` martin f krafft
2004-01-18 21:34 ` Kay Sievers
2004-01-19 16:21 ` martin f krafft

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).