From owner-freebsd-arch Fri Feb 23 4:33:12 2001 Delivered-To: freebsd-arch@freebsd.org Received: from dragon.nuxi.com (trang.nuxi.com [209.152.133.57]) by hub.freebsd.org (Postfix) with ESMTP id DBF4F37B491 for ; Fri, 23 Feb 2001 04:33:07 -0800 (PST) (envelope-from obrien@NUXI.com) Received: (from obrien@localhost) by dragon.nuxi.com (8.11.2/8.11.1) id f1NCQg803689; Fri, 23 Feb 2001 04:26:42 -0800 (PST) (envelope-from obrien) Date: Fri, 23 Feb 2001 04:26:41 -0800 From: "David O'Brien" To: Marcel Moolenaar Cc: arch@FreeBSD.org Subject: Re: sysctl kern.fallback_elf_brand Message-ID: <20010223042641.B2539@dragon.nuxi.com> Reply-To: arch@FreeBSD.org References: <3A960EF8.75C3FC53@cup.hp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3A960EF8.75C3FC53@cup.hp.com>; from marcel@cup.hp.com on Thu, Feb 22, 2001 at 11:19:20PM -0800 X-Operating-System: FreeBSD 5.0-CURRENT Organization: The NUXI BSD group X-Pgp-Rsa-Fingerprint: B7 4D 3E E9 11 39 5F A3 90 76 5D 69 58 D9 98 7A X-Pgp-Rsa-Keyid: 1024/34F9F9D5 Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, Feb 22, 2001 at 11:19:20PM -0800, Marcel Moolenaar wrote: > 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. I've never seen that. Everyone I've every tried just dumped core. Have you really seen running one reboot the machine? > I think we need to disable the fallback ELF branding when no ABI > compatibility module is loaded. That would be OK to me. > Of course, we can also set the default to 3 (=Linux) under the > assumption that the Linuxulator is the most frequently used ABI module. This would not be. > Thoughts? The real fix is to teach the ELF image loader to read the .note.ABI-tag section. Then statically linked Linux binaries would be correctly identified [since our branding scheme isn't accepted by anyone other than us]. -- -- David (obrien@FreeBSD.org) GNU is Not Unix / Linux Is Not UniX To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message