From owner-freebsd-arch Thu Feb 22 23:50:40 2001 Delivered-To: freebsd-arch@freebsd.org Received: from obsecurity.dyndns.org (adsl-63-207-60-188.dsl.lsan03.pacbell.net [63.207.60.188]) by hub.freebsd.org (Postfix) with ESMTP id DE3E837B4EC for ; Thu, 22 Feb 2001 23:50:36 -0800 (PST) (envelope-from kris@obsecurity.org) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 0EC3B66F38; Thu, 22 Feb 2001 23:50:36 -0800 (PST) Date: Thu, 22 Feb 2001 23:50:35 -0800 From: Kris Kennaway To: Alfred Perlstein Cc: Kris Kennaway , Marcel Moolenaar , arch@FreeBSD.ORG Subject: Re: sysctl kern.fallback_elf_brand Message-ID: <20010222235035.A1656@mollari.cthul.hu> References: <3A960EF8.75C3FC53@cup.hp.com> <20010222233800.A1394@mollari.cthul.hu> <20010222234457.D8663@fw.wintelcom.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="YZ5djTAD1cGYuMQK" Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010222234457.D8663@fw.wintelcom.net>; from bright@wintelcom.net on Thu, Feb 22, 2001 at 11:44:57PM -0800 Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG --YZ5djTAD1cGYuMQK Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Feb 22, 2001 at 11:44:57PM -0800, Alfred Perlstein wrote: > * Kris Kennaway [010222 23:38] wrote: > > On Thu, Feb 22, 2001 at 11:19:20PM -0800, Marcel Moolenaar wrote: > > > Hi, > > >=20 > > > I'm worried about the default value of the kern.fallback_elf_brand sy= ctl > > > (=3D 9 -> FreeBSD). It basicly tells the kernel that binaries without= any > > > branding are FreeBSD binaries. Since our binaries are always branded > > > (AFAICT), this seems to me as the wrong default. > > >=20 > > > One problem with this is that unbranded static Linux binaries are > > > executed as FreeBSD native binaries and there's a high chance of them > > > rebooting the machine if run as root. > > >=20 > > > I think we need to disable the fallback ELF branding when no ABI > > > compatibility module is loaded. Otherwise we can set the fallback to = the > > > one ABI module, or when multiple are loaded, the first. In the latter > > > case, the first may not be the preferred one, so we probably need to > > > have a bit more tuning than simply selecting the first. > > >=20 > > > Of course, we can also set the default to 3 (=3DLinux) under the > > > assumption that the Linuxulator is the most frequently used ABI modul= e. > > >=20 > > > Thoughts? > >=20 > > I've run into the unbranded Linux binary reboot before..very > > annoying. I agree the default should be changed. >=20 > Why does this happen? Does the exec code freak out if the default > isn't present, or does some common syscall just happen to map to > Linux's reboot syscall? Other way around. A common Linux syscall maps to the FreeBSD reboot syscall, so if the binary is unbranded the syscalls are interpreted using the FreeBSD table, and the user is left looking very surprised. Kris --YZ5djTAD1cGYuMQK Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.4 (FreeBSD) Comment: For info see http://www.gnupg.org iD8DBQE6lhZLWry0BWjoQKURApc7AKCA3+eJuOL2JaWcOjfTVXTruqCDJQCfUzdH OLsW9gV1VG2jUau5kwb9FX0= =FxRa -----END PGP SIGNATURE----- --YZ5djTAD1cGYuMQK-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message