From owner-freebsd-current@FreeBSD.ORG Thu Apr 12 13:55:25 2007 Return-Path: X-Original-To: current@FreeBSD.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E197A16A401; Thu, 12 Apr 2007 13:55:25 +0000 (UTC) (envelope-from ticso@cicely12.cicely.de) Received: from raven.bwct.de (raven.bwct.de [85.159.14.73]) by mx1.freebsd.org (Postfix) with ESMTP id 5324C13C465; Thu, 12 Apr 2007 13:55:25 +0000 (UTC) (envelope-from ticso@cicely12.cicely.de) Received: from cicely5.cicely.de ([10.1.1.7]) by raven.bwct.de (8.13.4/8.13.4) with ESMTP id l3CDtNlU054637; Thu, 12 Apr 2007 15:55:23 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (cicely12.cicely.de [10.1.1.14]) by cicely5.cicely.de (8.13.4/8.13.4) with ESMTP id l3CDtANk035368 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 12 Apr 2007 15:55:11 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (localhost [127.0.0.1]) by cicely12.cicely.de (8.13.4/8.13.3) with ESMTP id l3CDtA8E034882; Thu, 12 Apr 2007 15:55:10 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: (from ticso@localhost) by cicely12.cicely.de (8.13.4/8.13.3/Submit) id l3CDtAN4034881; Thu, 12 Apr 2007 15:55:10 +0200 (CEST) (envelope-from ticso) Date: Thu, 12 Apr 2007 15:55:09 +0200 From: Bernd Walter To: Robert Watson Message-ID: <20070412135508.GX30772@cicely12.cicely.de> References: <200704112004.03903.lists@jnielsen.net> <20070412021645.GQ30772@cicely12.cicely.de> <20070412114135.C64803@fledge.watson.org> <20070412112045.GR30772@cicely12.cicely.de> <20070412133301.L99718@fledge.watson.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070412133301.L99718@fledge.watson.org> X-Operating-System: FreeBSD cicely12.cicely.de 5.4-STABLE alpha User-Agent: Mutt/1.5.9i X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED=-1.8, BAYES_00=-2.599 autolearn=ham version=3.1.7 X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on cicely12.cicely.de Cc: John Nielsen , ticso@cicely.de, current@FreeBSD.org Subject: Re: ZFS to support chflags? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ticso@cicely.de List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Apr 2007 13:55:26 -0000 On Thu, Apr 12, 2007 at 01:34:11PM +0100, Robert Watson wrote: > > On Thu, 12 Apr 2007, Bernd Walter wrote: > > >>I'm not a big fan of setting these flags -- I fairly frequently run into > >>problems when I installworld an NFS root on the NFS host, then try to > >>work with it over NFS from the NFS-booted system, as the flags can't be > >>removed via NFS. They don't offer a security benefit as-installed, and > >>perhaps offer a benefit with respect to preventing people from shooting > >>themselves in the foot (or perhaps not). > > > >They do add security benefits for jails. E.g. hardlink system binaries > >over multiple jails flaged immuteable. No jail can compromise the data in > >other jails, while still allowing the kernel to share memory pages for it. > > However, the standard installworld doesn't do this. I'm don't object to > the flags existing, it's rather that I think that the incremental benefit > of the cases where we do set them by default via installworld isn't there. > If you're going to use schg to protect jails, it basically requires setting > the flag on all the directories and files that are shared, and that > wouldn't be a good default either. :-) Agreed - the base usage of those flags isn't a big win. Never saw your NFS problem, but that is only because I either cpio'ed my new host-root directories or update on the NFS-server in a chroot. So it was just luck that I did not saw it yet. It would be nice to have them in ZFS for other purpose. -- B.Walter http://www.bwct.de http://www.fizon.de bernd@bwct.de info@bwct.de support@fizon.de