Re: Reading a file from the Kernel.

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

 



Hi,

       U can have a look at call_usermodhelper() function


regards,

--- On Sat, 4/9/10, Greg Freemyer <greg.freemyer@xxxxxxxxx> wrote:

From: Greg Freemyer <greg.freemyer@xxxxxxxxx>
Subject: Re: Reading a file from the Kernel.
To: "LKomz Komz" <lkomz101@xxxxxxxxx>
Cc: kernelnewbies@xxxxxxxxxxxx
Date: Saturday, 4 September, 2010, 3:16 AM

On Fri, Sep 3, 2010 at 5:23 PM, LKomz Komz <lkomz101@xxxxxxxxx> wrote:
>
> Hi all,
> I had a query regarding how to access a file from a kernel driver.
> I currently use modprobe.config. Is there any other way I could use
> a config file other than the above?
> Thanks in advance,
> L Komz.

It's highly recommended you work with files in userspace and then pass
any policy info in via one of the normal kernel APIs.

http://kernelnewbies.org/FAQ/WhyWritingFilesFromKernelIsBad

Greg

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at 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