From owner-freebsd-emulation@FreeBSD.ORG Tue May 1 20:36:40 2007 Return-Path: X-Original-To: emulation@freebsd.org Delivered-To: freebsd-emulation@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C6EFE16A402; Tue, 1 May 2007 20:36:40 +0000 (UTC) (envelope-from jhein@timing.com) Received: from Daffy.timing.com (mx2.timing.com [206.168.13.218]) by mx1.freebsd.org (Postfix) with ESMTP id 7300013C459; Tue, 1 May 2007 20:36:40 +0000 (UTC) (envelope-from jhein@timing.com) Received: from gromit.timing.com (gromit.timing.com [206.168.13.209]) by Daffy.timing.com (8.13.1/8.13.1) with ESMTP id l41Kacci031669; Tue, 1 May 2007 14:36:38 -0600 (MDT) (envelope-from jhein@timing.com) Received: from gromit.timing.com (localhost [127.0.0.1]) by gromit.timing.com (8.13.8/8.13.8) with ESMTP id l41KaaLr043490; Tue, 1 May 2007 14:36:36 -0600 (MDT) (envelope-from jhein@gromit.timing.com) Received: (from jhein@localhost) by gromit.timing.com (8.13.8/8.13.8/Submit) id l41KaaxD043487; Tue, 1 May 2007 14:36:36 -0600 (MDT) (envelope-from jhein) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Message-ID: <17975.42196.607207.765279@gromit.timing.com> Date: Tue, 1 May 2007 14:36:36 -0600 From: John E Hein To: emulation@freebsd.org In-Reply-To: <17975.40706.810495.148190@gromit.timing.com> References: <17975.37939.743304.357841@gromit.timing.com> <46379A72.2080406@freebsd.org> <17975.40706.810495.148190@gromit.timing.com> X-Mailer: VM 7.19 under Emacs 22.0.99.1 X-Virus-Scanned: ClamAV version 0.90, clamav-milter version devel-120207 on Daffy.timing.com X-Virus-Status: Clean X-Spam-Status: No, score=-0.1 required=5.0 tests=AWL,BAYES_20, DK_POLICY_SIGNSOME autolearn=disabled version=3.1.8 X-Spam-Checker-Version: SpamAssassin 3.1.8 (2007-02-13) on Daffy.timing.com Cc: Subject: Re: sym links to absolute pathnames in /compat/linux X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 May 2007 20:36:40 -0000 John E Hein wrote at 14:11 -0600 on May 1, 2007: > Eric Anderson wrote at 14:52 -0500 on May 1, 2007: > > On 05/01/07 14:25, John E Hein wrote: =2E =2E > > > = > > > # ln -s /bin/foo /compat/linux/usr/bin/foo > > > # ls -l /compat/linux/usr/bin/foo > > > lrwxr-xr-x 1 root wheel 8 May 1 19:17 /compat/linux/usr/bin/f= oo -> /bin/foo > > > # cp -p /compat/linux/bin/ls /compat/linux/bin/foo > > > # cp -p /bin/ls /bin/foo =2E =2E And ktrace / linux_kdump shows... # rm /bin/foo # ktrace /compat/linux/bin/sh -c '/usr/bin/foo --version' /compat/linux/bin/sh: line 1: /usr/bin/foo: No such file or directory Exit 127 # linux_kdump | grep -5 foo 39558 bash CALL linux_rt_sigaction(0x3,0xbfbfdfb0,0xbfbfdf20,0x8) 39558 bash RET linux_rt_sigaction 0 39558 bash CALL linux_rt_sigaction(0x11,0xbfbfdfb0,0xbfbfdf20,0x8) 39558 bash RET linux_rt_sigaction 0 39558 bash CALL linux_execve(0x80ec768,0x80eda08,0x80ed608) 39558 bash NAMI "/compat/linux/usr/bin/foo" 39558 bash NAMI "/usr/bin/foo" 39558 bash RET linux_execve JUSTRETURN 39558 bash CALL linux_stat64(0x80ec768,0xbfbfe170,0x28224b10) 39558 bash NAMI "/compat/linux/usr/bin/foo" 39558 bash NAMI "/usr/bin/foo" 39558 bash RET linux_stat64 JUSTRETURN 39558 bash CALL linux_stat64(0x80ec768,0xbfbfdfd0,0x28224b10) 39558 bash NAMI "/compat/linux/usr/bin/foo" 39558 bash NAMI "/usr/bin/foo" 39558 bash RET linux_stat64 JUSTRETURN 39558 bash CALL write(0x2,0x80e8008,0x46) 39558 bash GIO fd 2 wrote 70 bytes "/compat/linux/bin/sh: line 1: /usr/bin/foo: No such file or direc= tory " 39558 bash RET write 70/0x46 39558 bash CALL exit(0x7f)