summaryrefslogtreecommitdiffstats
path: root/sys/kern/imgact_elf.c
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2002-11-05 01:59:56 +0000
committerrwatson <rwatson@FreeBSD.org>2002-11-05 01:59:56 +0000
commite05e16efa1b6fdbeab87f3c35f6dd106ed1789c9 (patch)
treeae3d42ca3a43dfe5238a6503057532919bbbc2a3 /sys/kern/imgact_elf.c
parentb2a246fa7430c692dccca295c0c132324c419662 (diff)
downloadFreeBSD-src-e05e16efa1b6fdbeab87f3c35f6dd106ed1789c9.zip
FreeBSD-src-e05e16efa1b6fdbeab87f3c35f6dd106ed1789c9.tar.gz
Remove reference to struct execve_args from struct imgact, which
describes an image activation instance. Instead, make use of the existing fname structure entry, and introduce two new entries, userspace_argv, and userspace_envv. With the addition of mac_execve(), this divorces the image structure from the specifics of the execve() system call, removes a redundant pointer, etc. No semantic change from current behavior, but it means that the structure doesn't depend on syscalls.master-generated includes. There seems to be some redundant initialization of imgact entries, which I have maintained, but which could probably use some cleaning up at some point. Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories
Diffstat (limited to 'sys/kern/imgact_elf.c')
-rw-r--r--sys/kern/imgact_elf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/kern/imgact_elf.c b/sys/kern/imgact_elf.c
index 6f42df6..ff15a46 100644
--- a/sys/kern/imgact_elf.c
+++ b/sys/kern/imgact_elf.c
@@ -514,7 +514,8 @@ __elfN(load_file)(struct proc *p, const char *file, u_long *addr,
* Initialize part of the common data
*/
imgp->proc = p;
- imgp->uap = NULL;
+ imgp->userspace_argv = NULL;
+ imgp->userspace_envv = NULL;
imgp->attr = attr;
imgp->firstpage = NULL;
imgp->image_header = (char *)kmem_alloc_wait(exec_map, PAGE_SIZE);
OpenPOWER on IntegriCloud