Subject: CVS commit: syssrc/sys/compat
To: None <source-changes@netbsd.org>
From: Jaromir Dolecek <jdolecek@netbsd.org>
List: source-changes
Date: 11/29/2002 21:13:17
Module Name:	syssrc
Committed By:	jdolecek
Date:		Fri Nov 29 19:13:17 UTC 2002

Modified Files:
	syssrc/sys/compat/freebsd: freebsd_exec_elf32.c
	syssrc/sys/compat/ibcs2: ibcs2_exec_elf32.c
	syssrc/sys/compat/irix: irix_exec.c
	syssrc/sys/compat/linux/common: linux_exec_elf32.c
	syssrc/sys/compat/svr4: svr4_exec_elf32.c svr4_exec_elf64.c
	syssrc/sys/compat/svr4_32: svr4_32_exec_elf32.c

Log Message:
Get the dynamic interpreter location using emul_find_interp(), so that
it checks both the alternative/emul tree, and the non-emul tree.
This makes it possible to run chrooted emulated binaries without need
to setup shadow /emul tree within the chroot hierarchy.
Only tested for COMPAT_LINUX, changes to other compat modules were
mechanical.
Fixes kern/19161 by Christian Groessler.


To generate a diff of this commit:
cvs rdiff -r1.8 -r1.9 syssrc/sys/compat/freebsd/freebsd_exec_elf32.c
cvs rdiff -r1.3 -r1.4 syssrc/sys/compat/ibcs2/ibcs2_exec_elf32.c
cvs rdiff -r1.24 -r1.25 syssrc/sys/compat/irix/irix_exec.c
cvs rdiff -r1.59 -r1.60 syssrc/sys/compat/linux/common/linux_exec_elf32.c
cvs rdiff -r1.4 -r1.5 syssrc/sys/compat/svr4/svr4_exec_elf32.c \
    syssrc/sys/compat/svr4/svr4_exec_elf64.c
cvs rdiff -r1.7 -r1.8 syssrc/sys/compat/svr4_32/svr4_32_exec_elf32.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.