lkml.org 
[lkml]   [2001]   [Oct]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectUser-level USB device drivers, and permissions
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.
*/
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2005-03-22 13:04    [W:16.946 / U:0.060 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site