From e20a449d57f00d291866ed3def56b4ad4b4b2b15 Mon Sep 17 00:00:00 2001 From: tedu Date: Thu, 21 Aug 2003 18:56:07 +0000 Subject: 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@ --- sys/compat/linux/linux_exec.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sys/compat/linux/linux_exec.c') 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, -- cgit v1.2.3-59-g8ed1b