From owner-freebsd-emulation Thu Nov 23 9: 3:14 2000 Delivered-To: freebsd-emulation@freebsd.org Received: from prism.flugsvamp.com (cb58709-a.mdsn1.wi.home.com [24.17.241.9]) by hub.freebsd.org (Postfix) with ESMTP id 4A14C37B4C5; Thu, 23 Nov 2000 09:03:08 -0800 (PST) Received: (from jlemon@localhost) by prism.flugsvamp.com (8.11.0/8.11.0) id eANH2DO14834; Thu, 23 Nov 2000 11:02:13 -0600 (CST) (envelope-from jlemon) Date: Thu, 23 Nov 2000 11:02:13 -0600 From: Jonathan Lemon To: Mike Smith Cc: Jonathan Lemon , marcel@cup.hp.com, emulation@freebsd.org Subject: Re: "Bogon" Discovered in linux.ko syscall-mapping Message-ID: <20001123110213.A69183@prism.flugsvamp.com> References: <200011230239.eAN2dkB87509@prism.flugsvamp.com> <200011231527.eANFRpF00909@mass.osd.bsdi.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre2i In-Reply-To: <200011231527.eANFRpF00909@mass.osd.bsdi.com> Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Thu, Nov 23, 2000 at 07:27:51AM -0800, Mike Smith wrote: > > >You're probably right. We can't map Linux' reboot to FreeBSDs as is. > > > > Yeah. I have a simplistic linux wrapper for the reboot call somewhere, > > I should dig it up and commit it. > > The real problem, actually, is not this at all. Uhm, no. The real problem is this: linux_sysent.c: { AS(reboot_args), (sy_call_t *)reboot }, /* 88 = reboot */ We can't do that, we need a "linux_reboot" function which interprets the arguments and does not reboot the machine when the call attempts to change the "Ctrl-Alt-Delete" setting. I'll dig up my patch after Thanksgiving and commit it. > The problem is that we assume that an unbranded static ELF binary is a > FreeBSD binary (this is wrong), and attempt to execute it as such. This may also be true, but is orthogonal to the reboot issue. -- Jonathan To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message