diff options
author | 2003-08-21 18:56:07 +0000 | |
---|---|---|
committer | 2003-08-21 18:56:07 +0000 | |
commit | e20a449d57f00d291866ed3def56b4ad4b4b2b15 (patch) | |
tree | e4c1ba408a1da199a7f5d407b6159f680564c9a7 /sys/kern/exec_elf.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/kern/exec_elf.c')
-rw-r--r-- | sys/kern/exec_elf.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/kern/exec_elf.c b/sys/kern/exec_elf.c index 2ff39545f8d..96083e6bfe9 100644 --- a/sys/kern/exec_elf.c +++ b/sys/kern/exec_elf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: exec_elf.c,v 1.47 2003/05/17 14:02:06 grange Exp $ */ +/* $OpenBSD: exec_elf.c,v 1.48 2003/08/21 18:56:07 tedu Exp $ */ /* * Copyright (c) 1996 Per Fogelstrom @@ -137,6 +137,7 @@ struct emul ELFNAMEEND(emul) = { ELFNAME2(exec,fixup), sigcode, esigcode, + EMUL_ENABLED | EMUL_NATIVE, }; /* |