Re: Calling userspace apps from within kernel

From: Erik Andersen (andersen@codepoet.org)
Date: Tue Sep 26 2000 - 01:39:45 EST


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:  andersee@debian.org
--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 majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Sep 30 2000 - 21:00:17 EST