From owner-freebsd-questions Wed Nov 12 16:20:49 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id QAA23527 for questions-outgoing; Wed, 12 Nov 1997 16:20:49 -0800 (PST) (envelope-from owner-freebsd-questions) Received: from ghost.mep.ruhr-uni-bochum.de (ghost.mep.ruhr-uni-bochum.de [134.147.6.33]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id QAA23513 for ; Wed, 12 Nov 1997 16:20:36 -0800 (PST) (envelope-from roberte@ghost.mep.ruhr-uni-bochum.de) Received: (from roberte@localhost) by ghost.mep.ruhr-uni-bochum.de (8.8.5/8.8.4) id BAA01519; Thu, 13 Nov 1997 01:20:20 +0100 (MEZ) From: Robert Eckardt Message-Id: <199711130020.BAA01519@ghost.mep.ruhr-uni-bochum.de> Subject: Re: ELF binary type not known In-Reply-To: from Doug White at "Nov 12, 97 03:38:07 pm" To: dwhite@resnet.uoregon.edu Date: Thu, 13 Nov 1997 01:20:20 +0100 (MEZ) Cc: roberte@MEP.Ruhr-Uni-Bochum.de, uzsv2k@uni-bonn.de, questions@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL31H (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk It was Doug White who wrote: > On Wed, 12 Nov 1997, Robert Eckardt wrote: [..] > > > Make sure you're loading the Linux LKM through /etc/rc.conf. You may need > > > to run `brandelf -t Linux ldconfig' to have FreeBSD grok the emulation > > > properly. The options COMPAT_LINUX / LINUX_COMPAT are no longer needed, > > > thankfully. > > > > Has anybody cooked a hack to avoid branding for a default type > > of ELF binaries ? > > Like some sysctl to set the default e.g. to Linux to say > > "if it's ELF and you didn't find a type, assume Linux". > > (Just to be able to install directly from CD.) > > The problem with this is: > > 1. The Linux emulator isn't loaded by default. This could be checked. > 2. We're leaving the path clear for FreeBSD-native ELF binaries and > changing it would be a bad precedent. Ideally, it should be possible on a per user/process basis. The difference were the flexibility to declare a binary to be of type X. I am just looking for a way to temporarily "brand" an otherwise read-only executable to be of some specific type. Of course, I assume that FreeBSD binaries would always be properly branded, being aware of the existing situation. > The solution is probably closer to pointing big fingers at the > ``linux_enable'' hook in /etc/rc.conf. Handbook section maybe? Sorry, I didn't get this point. ??? Robert -- Robert Eckardt \\ FreeBSD -- solutions for a large universe.(tm) RobertE@MEP.Ruhr-Uni-Bochum.de \\ What do you want to boot tomorrow ?(tm) http://WWW.MEP.Ruhr-Uni-Bochum.de/~roberte For PGP-key finger roberte@gluon.MEP.Ruhr-Uni-Bochum.de