From owner-freebsd-arch Thu Feb 22 23:19:43 2001 Delivered-To: freebsd-arch@freebsd.org Received: from palrel1.hp.com (palrel1.hp.com [156.153.255.242]) by hub.freebsd.org (Postfix) with ESMTP id B559037B503 for ; Thu, 22 Feb 2001 23:19:41 -0800 (PST) (envelope-from marcel@cup.hp.com) Received: from adlmail.cup.hp.com (adlmail.cup.hp.com [15.0.100.30]) by palrel1.hp.com (Postfix) with ESMTP id 12443548 for ; Thu, 22 Feb 2001 23:19:21 -0800 (PST) Received: from cup.hp.com (p1000180.nsr.hp.com [15.109.0.180]) by adlmail.cup.hp.com (8.9.3 (PHNE_18546)/8.9.3 SMKit7.02) with ESMTP id XAA11558 for ; Thu, 22 Feb 2001 23:19:20 -0800 (PST) Message-ID: <3A960EF8.75C3FC53@cup.hp.com> Date: Thu, 22 Feb 2001 23:19:20 -0800 From: Marcel Moolenaar Organization: Hewlett-Packard X-Mailer: Mozilla 4.73 [en] (X11; U; Linux 2.2.12 i386) X-Accept-Language: en MIME-Version: 1.0 To: arch@FreeBSD.org Subject: sysctl kern.fallback_elf_brand Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, I'm worried about the default value of the kern.fallback_elf_brand syctl (= 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. 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 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. Of course, we can also set the default to 3 (=Linux) under the assumption that the Linuxulator is the most frequently used ABI module. Thoughts? -- Marcel Moolenaar mail: marcel@cup.hp.com / marcel@FreeBSD.org tel: (408) 447-4222 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message