From owner-freebsd-security Wed Apr 22 16:42:17 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id QAA03318 for freebsd-security-outgoing; Wed, 22 Apr 1998 16:42:17 -0700 (PDT) (envelope-from owner-freebsd-security@FreeBSD.ORG) Received: from dyson.iquest.net (dyson.iquest.net [198.70.144.127]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id XAA03266; Wed, 22 Apr 1998 23:41:48 GMT (envelope-from toor@dyson.iquest.net) Received: (from root@localhost) by dyson.iquest.net (8.8.8/8.8.8) id SAA06998; Wed, 22 Apr 1998 18:41:41 -0500 (EST) (envelope-from toor) From: "John S. Dyson" Message-Id: <199804222341.SAA06998@dyson.iquest.net> Subject: Re: Static vs. dynamic linking (was Re: Using MD5 insted of DES ...) In-Reply-To: from Snob Art Genre at "Apr 22, 98 07:10:10 pm" To: benedict@echonyc.com (Snob Art Genre) Date: Wed, 22 Apr 1998 18:41:41 -0500 (EST) Cc: dyson@FreeBSD.ORG, freebsd-security@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL38 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-security@FreeBSD.ORG Precedence: bulk > On Wed, 22 Apr 1998, John S. Dyson wrote: > > > Because I don't mess with the ports, and haven't done a very good > > job of making the above fact known. For maintenence, memory and > > speed reasons, one can seldom justify a shared shell. > > I wouldn't mind forwarding this exchange to the various ports > maintainers, if that's okay with you. > Sure!!! :-). > > My suggestions for programs that should probably not be linked shared > > under any circumstances: > > Make, cp, cat, ls, *sh, cc, daemons that fork, .... > > mail readers, any (small) program invoked by make, or > > repeatedly invoked by shell scripts. If the shared > > libs are on /usr, any program that needs to be > > able to work without /usr mounted. > > Gweep. Inetd is dynamically linked. So are fingerd and ftpd. Again, > would you have any objection to my contacting the various maintainers, > and referring them to you if they have questions I can't answer? Or > would it be better if I pointed them to freebsd-hackers? > Point them here. This should be an issue of common-knowledge. Feel free to suggest talking to me, as needed. > > > Programs where it is likely slightly advantageous to link shared: > > cc1, cc1plus, cpp, as, *roff, daemons that don't > > fork often, any X windows program (including those in any > > category), specialty programs that aren't used often... > > So my window manager should be linked shared, even though I believe it > forks quite a bit? > That is a difficult decision. I suggest that it is likely best shared. X libraries are generally so huge that the sharing overcomes the disadvantages. John To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe security" in the body of the message