Re: reading a file from USB drive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Feb 08, 2005 at 02:09:02AM +0100, Andrzej Polatynski wrote:
> Greg KH wrote:
> 
> >You get it from userspace, which is where you should be doing all of
> >this (not from within the kernel.)
> 
> What my module is supposed to be is a sample security module (mainly for
> demonstration purpose) based on LSM framework. IMHO in this case doing
> this in userspace would be less secure.
> 
> Details: I want to achieve similar functionality to your root_plug
> module but with an additional key/PIN checking. In original plans this
> key would be stored on a SmartCard but, as I don't have a SmartCard
> reader, I thought of storing it on a simple USB pendrive.

No, have userspace give the kernel that key/PIN/whatever.  Trying to
figure out where a specific USB device is mounted from within the kernel
is a _very_ tough task.  

And it's nothing that will ever be accepted in mainline :)

Good luck,

greg k-h

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux