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.
Bad thing to do. You can't be sure that the path exists, it's
distro-specific.
Also you can't be sure that the fs that the file is on is mounted at time
the driver is initialised.
Do this from userspace. Accessing files from kernelspace is a BAD thing to
do.
> Any help is greatly appreciated.
>
> Thanks,
> Paul Burkacki
> Axent Technologies, Inc.
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