Re: execve from the kernel ??

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

 



On 11/5/05, Fawad Lateef <fawadlateef@xxxxxxxxx> wrote:
> 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 ....
>
>
Thanks, Fawad !
Sebba.

> --
> Fawad Lateef
>

--
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