Re: execve from the kernel ??

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

 



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

> --
> Fawad Lateef
>
> --
> Kernelnewbies: Help each other learn about the Linux kernel.
> Archive:       http://mail.nl.linux.org/kernelnewbies/
> FAQ:           http://kernelnewbies.org/faq/
>
>

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