Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S267920AbUIFMzB (ORCPT ); Mon, 6 Sep 2004 08:55:01 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S267936AbUIFMzB (ORCPT ); Mon, 6 Sep 2004 08:55:01 -0400 Received: from frankvm.xs4all.nl ([80.126.170.174]:11163 "EHLO janus.localdomain") by vger.kernel.org with ESMTP id S267920AbUIFMy5 (ORCPT ); Mon, 6 Sep 2004 08:54:57 -0400 Date: Mon, 6 Sep 2004 14:54:56 +0200 From: Frank van Maarseveen To: Frank van Maarseveen , Tonnerre , Alan Cox , Linus Torvalds , Jamie Lokier , Horst von Brand , Adrian Bunk , Hans Reiser , viro@parcelfarce.linux.theplanet.co.uk, Christoph Hellwig , linux-fsdevel@vger.kernel.org, Linux Kernel Mailing List , Alexander Lyamin aka FLX , ReiserFS List Subject: Re: The argument for fs assistance in handling archives (was: silent semantic changes with reiser4) Message-ID: <20040906125456.GA32248@janus> References: <20040826150202.GE5733@mail.shareable.org> <200408282314.i7SNErYv003270@localhost.localdomain> <20040901200806.GC31934@mail.shareable.org> <1094118362.4847.23.camel@localhost.localdomain> <20040902203854.GA4801@janus> <20040906075603.GB28697@thundrix.ch> <20040906080845.GA31483@janus> <20040906124357.GB27133@MAIL.13thfloor.at> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040906124357.GB27133@MAIL.13thfloor.at> User-Agent: Mutt/1.4.1i X-Subliminal-Message: Use Linux! Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1010 Lines: 28 On Mon, Sep 06, 2004 at 02:43:57PM +0200, Herbert Poetzl wrote: > hmm, sounds reasonable, but what if root accesses it? > (or somebody with the 'right' capability) > > - it might be strange if even root is not able to > open device nodes or execute files from an archive Yes, but if the file is owned by or writable for non-root then you've got a security problem. So, unless owned by root and not writable (readable, executable?) for anyone else "nodev" and 'nosuid" are mandatory. > > - it might lead to interesting situations if the > archive is opened by root, but accessed by an user > (thinking of caches and such) See the above. Alternatively, each process could have its own vfsmount (please don't shoot me for suggesting this ;-) -- Frank - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/