On Tue Sep 26, 2000 at 03:18:54PM +1000, Daniel Walls wrote:
> Hi,
> 
>       I was wondering if it is possible to execute a userspace application from 
> within the kernel (particularly binfmt_elf.c)...
> something along the lines of execl()...
> 
> If so, what is the name of the function used to do this?

static char * envp[MAX_INIT_ENVS+2] = { "HOME=/", "TERM=linux", NULL, };
execve("/bin/foo",argv,envp);

Just because you can do something does not, however, 
make it a good idea...

 -Erik

--
Erik B. Andersen   email:  [EMAIL PROTECTED]
--This message was written using 73% post-consumer electrons--
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.tux.org/lkml/

Reply via email to