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.
-- Andrzej Polatynski
-- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/