Messages in this thread |  | | Date | Tue, 26 Sep 2000 00:39:45 -0600 | From | Erik Andersen <> | Subject | Re: Calling userspace apps from within kernel |
| |
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/
|  |