lkml.org 
[lkml]   [2000]   [Sep]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: 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/

\
 
 \ /
  Last update: 2005-03-22 12:38    [W:0.030 / U:0.024 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site