Re: do_execve().

From: Igmar Palsenberg (maillist@chello.nl)
Date: Sat May 06 2000 - 07:11:16 EST


On Fri, 5 May 2000, Paul Burkacki wrote:

> Greetings,
>
> I am tryimg to execute do_execve() from within a driver to
> trigger execution of a script in user mode. The call fails
> with -14 (EFAULT, I believe). I *think* I am setting up all
> arguments for do_execve() correctly but, since I haven't found
> any examples of its use, I am not sure.
>
> Could anyone point me to where I could find exmples of how to
> correctly call do_execve()? I am particularly curious about
> envp and pt_regs.

In case you want to : call kernel_thread() before do_execve()

Some nice examples are in the kmod source.

        Regards,

                Igmar

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sun May 07 2000 - 21:00:19 EST