From owner-freebsd-hackers@FreeBSD.ORG Sat Jul 19 08:53:20 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9AFF037B401 for ; Sat, 19 Jul 2003 08:53:20 -0700 (PDT) Received: from lifesupport.shutdown.com (dsl092-048-059.sfo2.dsl.speakeasy.net [66.92.48.59]) by mx1.FreeBSD.org (Postfix) with ESMTP id 194F443FB1 for ; Sat, 19 Jul 2003 08:53:20 -0700 (PDT) (envelope-from llewelly@lifesupport.shutdown.com) Received: (from llewelly@localhost) by lifesupport.shutdown.com (8.11.2/8.11.2) id h6JFmf908764; Sat, 19 Jul 2003 08:48:41 -0700 (PDT) To: netch@lucky.net References: <20030718091248.GO76126@lucky.net> From: LLeweLLyn Reese Date: 19 Jul 2003 08:48:40 -0700 In-Reply-To: <20030718091248.GO76126@lucky.net> Message-ID: Lines: 23 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii cc: hackers@freebsd.org Subject: Re: complicated downgrade X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Jul 2003 15:53:20 -0000 Valentin Nechayev writes: [snip] > 8. Disable all processes except sshd and run the following (saying generally): > > for D in /bin /sbin /etc /boot /usr/bin /usr/sbin /usr/lib /usr/libexec \ > /usr/libdata /usr/share /usr/local /var/db > do > mv ${D} ${D}5 > mv ${D}4 {D} > done [snip] Once you mv /usr/lib /usr/lib5, dynamicly linked executables will be broken, until you mv /usr/lib4 /usr/lib (I think). I think it would be a good idea check every tool you think you might need, and build a staticly linked executable if the existing executable isn't. Most of what you need will be staticly linked by default, but e.g. sshd, ftp, find, vim, are not. (If all goes as planned, you won't need any of those while /usr/lib is being moved, but ... ) (Caveat: this isn't based on experience with freebsd, it's based experience with linux boxen, where *everything* is typically staticly linked, unless someone rebuilt tools.)