Yuan Chunyang wrote: >>Just don't do this. There is zero reason to put this complexity into >>the kernel. Do all parsing and config file reading in userspace. Then >>use results to pass parsed data to kernel via a simple interface. E.g. >>one value per file filesystem, sysfs entries, etc. > > > > Yes , Chirs. I know your mean - put the parsing work in userspace. Do > you have simple example of how to parse the configure file and kenel module > can get it by sysfs or by other ways? Hi Yuan, In DSI project, the security policy file is written on XML, it is parsed in user space and then the info is sent to our Linux kernel module dsm, through sysfs. you could have a look at our source code, http://sourceforge.net/projects/disec/ consider downloading the disec-0.4 package. Feel free to contact me for more info, Makan > > Maybe it is the simple way to parse the configure file to binary file in userspace > and let kenel module read binary file. > > _ __ > |\/ \/ ______ Yuan Chunyang (Ph.D candidate) > \| . . || |\\\\\ Open System & Chinese Information Processing Center > ( ( oo))| | ------ Institute of Software , Chinese Academy of Sciences > / \ \| | |||| P.O.Box 8718 Beijing 100080 P.R.China > (___\^^^^^|_|___|||| Email: chunyang03@private -- Makan Pourzandi, Open Systems Lab Ericsson Research, Montreal, Canada *This email does not represent or express the opinions of Ericsson Inc.*
This archive was generated by hypermail 2.1.3 : Fri Sep 10 2004 - 05:04:36 PDT