diff options
| author | 2003-08-21 18:56:07 +0000 | |
|---|---|---|
| committer | 2003-08-21 18:56:07 +0000 | |
| commit | e20a449d57f00d291866ed3def56b4ad4b4b2b15 (patch) | |
| tree | e4c1ba408a1da199a7f5d407b6159f680564c9a7 /sys/compat/linux/linux_exec.c | |
| parent | fix the offsets in decoding byte rom dd (verified per manual); miod@ ok (diff) | |
| download | wireguard-openbsd-e20a449d57f00d291866ed3def56b4ad4b4b2b15.tar.xz wireguard-openbsd-e20a449d57f00d291866ed3def56b4ad4b4b2b15.zip | |
emulation is now controlled by sysctl. changes:
add e_flags to struct emul. this stores on/off and native flags.
check for emul enabled in check_exec(). gather all the emuls into a
emulsw so a sysctl can find them. create sysctl. move maxhdrsiz calcualation
into init_main so it cleans up sys_execve codepath. teach sysctl utility
to grok kern.emul hierarchy.
requested and ok deraadt@ some comments from mickey@
Diffstat (limited to 'sys/compat/linux/linux_exec.c')
| -rw-r--r-- | sys/compat/linux/linux_exec.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/compat/linux/linux_exec.c b/sys/compat/linux/linux_exec.c index 204eca3692a..b0203f6f956 100644 --- a/sys/compat/linux/linux_exec.c +++ b/sys/compat/linux/linux_exec.c @@ -1,4 +1,4 @@ -/* $OpenBSD: linux_exec.c,v 1.21 2003/06/21 00:42:58 tedu Exp $ */ +/* $OpenBSD: linux_exec.c,v 1.22 2003/08/21 18:56:07 tedu Exp $ */ /* $NetBSD: linux_exec.c,v 1.13 1996/04/05 00:01:10 christos Exp $ */ /*- @@ -110,6 +110,7 @@ struct emul emul_linux_aout = { NULL, linux_sigcode, linux_esigcode, + 0, NULL, linux_e_proc_exec, linux_e_proc_fork, @@ -134,6 +135,7 @@ struct emul emul_linux_elf = { exec_elf32_fixup, linux_sigcode, linux_esigcode, + 0, NULL, linux_e_proc_exec, linux_e_proc_fork, |
