Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262963AbVALAEe (ORCPT ); Tue, 11 Jan 2005 19:04:34 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262943AbVALAEK (ORCPT ); Tue, 11 Jan 2005 19:04:10 -0500 Received: from pastinakel.tue.nl ([131.155.2.7]:37135 "EHLO pastinakel.tue.nl") by vger.kernel.org with ESMTP id S262974AbVAKX7O (ORCPT ); Tue, 11 Jan 2005 18:59:14 -0500 Date: Wed, 12 Jan 2005 00:59:07 +0100 From: Andries Brouwer To: "Barry K. Nathan" Cc: Linus Torvalds , Marcelo Tosatti , Alan Cox , Lukasz Trabinski , Linux Kernel Mailing List Subject: Re: [PATCH] make uselib configurable (was Re: uselib() & 2.6.X?) Message-ID: <20050111235907.GG2760@pclin040.win.tue.nl> References: <20050107170712.GK29176@logos.cnet> <1105136446.7628.11.camel@localhost.localdomain> <20050107221255.GA8749@logos.cnet> <20050111225127.GD4378@ip68-4-98-123.oc.oc.cox.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050111225127.GD4378@ip68-4-98-123.oc.oc.cox.net> User-Agent: Mutt/1.4.2i X-Spam-DCC: SINECTIS: pastinakel.tue.nl 1114; Body=1 Fuz1=1 Fuz2=1 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2257 Lines: 53 On Tue, Jan 11, 2005 at 02:51:27PM -0800, Barry K. Nathan wrote: > On Sat, Jan 08, 2005 at 10:46:19AM -0800, Linus Torvalds wrote: > > Another issue is likely that we should make the whole "uselib()" > > interfaces configurable. I don't think modern binaries use it (where > > "modern" probably means "compiled within the last 8 years" ;). libc 5.4.46 is from 1998-06-21 or so, glibc 2.0.5 from 1997-08-25 or so. > +config SYS_USELIB > + bool "sys_uselib syscall support (needed for old binaries)" > + ---help--- > + Many old binaries (e.g. dynamically linked a.out binaries, and > + ELF binaries that are dynamically linked against libc5), require > + the sys_uselib syscall. However, on the typical Linux system, this > + code is just old cruft that no longer serves a purpose. > + > + If you are unsure, say "N" if you care more about security and > + trimming bloat, or say "Y" if you care more about compatibility > + with old software. (If you will answer "Y" or "M" to BINFMT_AOUT, > + below, you probably should answer "Y" here.) s/sys_uselib/uselib/ The system call is uselib(). Hmm - old cruft.. Why insult your users? I do not have source for Maple. And my xmaple binary works just fine. But it is a libc4 binary. You mean "on the typical recently installed Linux system, with nothing but the usual Linux utilities". People always claim that Linux is good in preserving binary compatibility. Don't know how true that was, but introducing such config options doesnt help. Let me also mutter about something else. In principle configuration options are evil. Nobody wants fifty thousand configuration options. But I see them multiply like ioctls. There should be a significant gain in having a config option. Maybe some argue that there is a gain in security here. Perhaps. Or a gain in memory. It is negligible. I see mostly a loss. There are more ancient system calls, like old_stat and oldolduname. Do we want separate options for each system call that is obsoleted? Andries - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/