[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: execve from the kernel ??
On 11/5/05, Sebastian Skar <sebastianskar@xxxxxxxxx> wrote:
> > > > Is it possible to execute an executable ELF file
> > > > from within the kernel ?
> > > > something like fork+execve from a kernel module ?
> > >
> > > Yes, you can exceute a user space application through
> > > call_usermodehelper function. But keep in mind that the application
> > > will run with root rights but run in user space ...
> > >
> > thanks!
> > it says that it "Must be called from process context".
> > can i use it from kernel module's init function ?
Yes it can be called from init_module (its confirm, I used it that
way) ! And AFAIK init_module is called at process context through
insmod ....
> oops, i replied from a friend's terminal...
> the question still stands, though :)
>
No Problem ! :)
--
Fawad Lateef
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/kernelnewbies/
FAQ: http://kernelnewbies.org/faq/