From: Lucas Correia Villa Real Subject: Re: changing permission()/vfs_permission... to work on dentry Date: Thu, 29 May 2003 09:40:45 -0300 Sender: linux-fsdevel-owner@vger.kernel.org Message-ID: <200305290940.45084.lucasvr@gobolinux.org> References: <1054154587.9356.15.camel@zaphod> <20030528225308.GG14138@parcelfarce.linux.theplanet.co.uk> <1054168407.9962.45.camel@zaphod> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Return-path: Received: from paiol.terra.com.br ([200.176.3.18]:8862 "EHLO paiol.terra.com.br") by vger.kernel.org with ESMTP id S262298AbTE2P1M (ORCPT ); Thu, 29 May 2003 11:27:12 -0400 Received: from itaim.terra.com.br (itaim.terra.com.br [200.176.3.76]) by paiol.terra.com.br (Postfix) with ESMTP id 385AA2FC5FE for ; Thu, 29 May 2003 12:40:27 -0300 (BRT) Received: from ummagumma.ozzmosis.net (200-203-050-191.nhoce7002.dsl.brasiltelecom.net.br [200.203.50.191]) (authenticated user lucasvr) by itaim.terra.com.br (Postfix) with ESMTP id 635E22E0044 for ; Thu, 29 May 2003 12:40:26 -0300 (BRT) To: linux-fsdevel@vger.kernel.org In-Reply-To: <1054168407.9962.45.camel@zaphod> Content-Disposition: inline List-Id: linux-fsdevel.vger.kernel.org On Wednesday 28 May 2003 21:33, Shaya Potter wrote: > yes. The issue we are trying to solve (much like SubDomain > http://www.immunix.org/subdomain.html) is that you have a single fs, but > not every application needs access to that entire namespace, but from an > administrative point of view, its easier to deal w/ a single namespace. > For instance, sendmail doesn't need /bin/sh, it be fairly hard to > administrate a sendmail box that didn't have it though. If there's no > /bin/sh in the processes "namespace" (used loosely, as in mode 000 to it > and even uid 0 processes) the ability to get a root shell is limited. > > The problem is, one would have a problem storing all this attribute data > for every file in a system as there can be many contexts. If one can > store the rules instead and use "string compares" (well, not really > string compares as that could be too slow) one can partition off the > applications. > > So why not chroot? well, it doesn't work so well for uid 0 apps, as > they can chroot themselves again. and even if that wasn't an issue, one > isn't operating under a single namespace anymore so it makes > administration harder. Hi, Can't this be implemented as a stackable filesystem instead? I guess this stuff can be handled on VFS. Lucas