From owner-freebsd-questions@FreeBSD.ORG Fri Jun 13 18:29:37 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 76666106568D for ; Fri, 13 Jun 2008 18:29:37 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (wojtek.tensor.gdynia.pl [IPv6:2001:4070:101:2::1]) by mx1.freebsd.org (Postfix) with ESMTP id 75A9B8FC0A for ; Fri, 13 Jun 2008 18:29:35 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (localhost [IPv6:::1]) by wojtek.tensor.gdynia.pl (8.14.2/8.14.2) with ESMTP id m5DISN96002772; Fri, 13 Jun 2008 20:28:23 +0200 (CEST) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from localhost (wojtek@localhost) by wojtek.tensor.gdynia.pl (8.14.2/8.14.2/Submit) with ESMTP id m5DISNqM002769; Fri, 13 Jun 2008 20:28:23 +0200 (CEST) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Date: Fri, 13 Jun 2008 20:28:23 +0200 (CEST) From: Wojciech Puchar To: "A. Hamilton-Wright" In-Reply-To: Message-ID: <20080613202642.D2744@wojtek.tensor.gdynia.pl> References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-questions@freebsd.org Subject: Re: Running with a readonly root partition X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Jun 2008 18:29:37 -0000 > > As devfs is running by default, it seems to me that > it would be relatively easy to run with a readonly > root partition, assuming that the directories under > which writing is necessary (ie; /tmp, /var, /home) > are located in separate, writable partitions. yes. > The main advantages are that none of the configuration > files or binaries in /etc and /usr (which may still /etc is rather writable - for example when user changes password. > be on a separate readonly partition) are vulnerable > and the boot process update to /etc/motd). Once these > have been rectified by relocating the files and setting > up symlinks, there have been no problems. > > My questions are: > - does anyone else do this? no that - but i do this on my liveDVD > - if not, why not? if you will set securelevel to prevent umounts - it may add much to the security. but - the same time - you'll have to reboot system to change anything!