From owner-freebsd-questions@FreeBSD.ORG Wed Nov 29 22:28:58 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 886B016A595 for ; Wed, 29 Nov 2006 22:28:58 +0000 (UTC) (envelope-from joe@joeholden.co.uk) Received: from claire.ber.rewt.org.uk (claire.ber.rewt.org.uk [217.160.200.67]) by mx1.FreeBSD.org (Postfix) with ESMTP id AF51B43D70 for ; Wed, 29 Nov 2006 22:28:12 +0000 (GMT) (envelope-from joe@joeholden.co.uk) Received: from localhost (unknown [127.0.0.1]) by claire.ber.rewt.org.uk (Postfix) with ESMTP id 615635C84; Wed, 29 Nov 2006 22:27:44 +0000 (GMT) X-Virus-Scanned: amavisd-new at claire.ber.rewt.org.uk Received: from claire.ber.rewt.org.uk ([127.0.0.1]) by localhost (claire.ber.rewt.org.uk [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id FfdZafkTHb+b; Wed, 29 Nov 2006 22:27:38 +0000 (GMT) Received: from [195.28.169.201] (unknown [195.28.169.201]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by claire.ber.rewt.org.uk (Postfix) with ESMTP id 2FB2D5C27; Wed, 29 Nov 2006 22:27:38 +0000 (GMT) Message-ID: <456E0958.1040808@joeholden.co.uk> Date: Wed, 29 Nov 2006 22:27:36 +0000 From: Joe Holden User-Agent: Thunderbird 1.5.0.8 (Windows/20061025) MIME-Version: 1.0 To: "illoai@gmail.com" References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org, el.nadow@gmail.com Subject: Re: Removing "modules" from the Userland X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: joe@joeholden.co.uk List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Nov 2006 22:28:58 -0000 illoai@gmail.com wrote: > On 11/29/06, Nadow wrote: >> Hi! I installed the 6.2-RC1 version but now I have decided to remove >> the profiled libraries and I know that for that purpose I have to add >> the line "NO_PROFILE=" to the make.conf before the "make world" >> action. >> >> My doubt is if I reinstall or upgrade the Userland without this option >> or anyone (let's say Kerberos, Sendmail.. etc) that I have already >> installed, these options are going to be removed, or simply are not >> going to be upgraded and/or reinstalled again. > > Assuming I have read you correctly, when you put > NO_PROFILE= > NO_SENDMAIL= > et al > into you /etc/make.conf that buildworld (and by extension > installworld) skip over these, leaving the old versions > untouched. For example, as I have many of those set > in /etc/make.conf ls -l /usr/sbin gives me in part: > > -r-xr-xr-x 1 root wheel 35884 Nov 21 22:25 mtree > -r-xr-xr-x 2 root wheel 1359316 Feb 1 2006 named > -r-xr-xr-x 1 root wheel 1060104 Feb 1 2006 named-checkconf > -r-xr-xr-x 1 root wheel 1011336 Feb 1 2006 named-checkzone > -r-xr-xr-x 2 root wheel 1738 Feb 1 2006 named.reconfig > -r-xr-xr-x 2 root wheel 1738 Feb 1 2006 named.reload > -r-xr-xr-x 1 root wheel 6688 Nov 21 22:26 ndis_events > > Where you can see that, although I have rebuilt world as of > 21 Nov, since I have NO_BIND= set, the /usr/sbin/named* > has not been touched since 01 Feb. I suppose they could be > deleted, but AFIK the buildworld/installworld cycle will not do > this for you. > > On the other hand, if you are not cramped for space they do > (generally) no harm. > > On the gripping hand, a malicious user might be able to start > up and then exploit known bugs in those services, so you may > be better off either upgrading to known good versions or > deleting them. > Perhaps someone could write a script/something to generate a diff between buildworld and installed libs for this purpose? Just a thought as I also have alot of flags like that in make.conf Ta, Joe