public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* User-level USB device drivers, and permissions
@ 2001-10-05 11:51 Tim Waugh
  2001-10-06  0:08 ` Oliver Neukum
  0 siblings, 1 reply; 2+ messages in thread
From: Tim Waugh @ 2001-10-05 11:51 UTC (permalink / raw)
  To: linux-kernel

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

I have a question regarding user-level USB device drivers.  The
project I'm thinking about is gphoto2.  I'm posting it here because at
least part of the solution lies in usbdevfs I think.

The problem is this:

How can a user-level USB device driver do its job while running as a
non-root 'console' user, with minimal (preferrably no) intervention
from the sysadmin?

By 'console' user, I am talking about the users that pam_console will
recognise as being on the console.

The closest solution at the moment seems to be: mount /proc/bus/usb
group-writable and group-owned by 'usb', and add users that can use
USB devices to group 'usb'.  This has the following problems:

- sysadmin needs to add any potential console users to the 'usb' group
  first,
- those users are then in the usb group even when not at the console.

An idea in my head is to have a pam module that, for console users,
mounts -tusbdevfs none /somewhere/usb-bus/$LOGNAME with user ownership
on login and dismounts it on logout, but I don't know if that is
feasible.

Does anyone know if this problem has already been solved, or else can
they think of a solution?

Thanks,
Tim.
*/

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

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

end of thread, other threads:[~2001-10-06  0:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-10-05 11:51 User-level USB device drivers, and permissions Tim Waugh
2001-10-06  0:08 ` Oliver Neukum

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox