Received: from jazzdrum.ncsc.mil (zombie.ncsc.mil [144.51.88.131]) by tarius.tycho.ncsc.mil (8.13.1/8.13.1) with SMTP id l4NEsELZ017349 for ; Wed, 23 May 2007 10:54:14 -0400 Received: from mx1.redhat.com (jazzdrum.ncsc.mil [144.51.5.7]) by jazzdrum.ncsc.mil (8.12.10/8.12.10) with ESMTP id l4NEsCeZ016208 for ; Wed, 23 May 2007 14:54:12 GMT Subject: Re: Fedora Core 7 has frozen and Fedora 8 Development has started From: Karl MacMillan To: Joshua Brindle Cc: Todd Miller , Klaus Weidner , James Antill , Paul Moore , SE Linux , Daniel J Walsh In-Reply-To: <465308DD.2090600@manicmethod.com> References: <464E13CB.1070609@redhat.com> <20070521190811.GA11544@w-m-p.com> <4651EFCC.1040500@redhat.com> <200705211543.10171.paul.moore@hp.com> <1179779222.23650.24.camel@code.and.org> <20070521221304.GB11544@w-m-p.com> <4652F0B7.60506@manicmethod.com> <6FE441CD9F0C0C479F2D88F959B01588BEFCC2@exchange.columbia.tresys.com> <465308DD.2090600@manicmethod.com> Content-Type: text/plain Date: Wed, 23 May 2007 10:01:08 -0400 Message-Id: <1179928868.26483.14.camel@localhost.localdomain> Mime-Version: 1.0 Sender: owner-selinux@tycho.nsa.gov List-Id: selinux@tycho.nsa.gov On Tue, 2007-05-22 at 11:14 -0400, Joshua Brindle wrote: > Todd Miller wrote: > > Joshua Brindle wrote: > > > >> How would the client get that kind of information? apol is the only > >> app I know if that does any kind of relabel analysis to see what who > >> can relabel what-to-what and that would be a pretty high level > >> dependency for nautilus (and it also uses the policy on disk instead > >> of the one loaded into the kernel). Also the list would be completely > >> unusable when run from unconfined_t, which is the normal use case. > >> > > > > There was a proof of concept file label utility in SEDarwin that used a > > sysctl to get the list of allowable file contexts for a user. Like you > > say, it was basically useless from unconfined_t (it was initially > > written for the old example policy). > > > > What does allowable file context mean? > This doesn't have to be an exhaustive list of contexts - but a list of the most likely contexts that the user might want would be helpful. > You need to be able to do an analysis on the policy to see what user can > relabelfrom and what they can relabelto. If they can't relabelfrom the > file being modified in nautilus then nothing should appear, otherwise > the types they can relabelto would appear. > 1) The analysis isn't that complicated - no reason it can't be done in libsepol if it is useful. 2) It could be data driven from the policy - types could be marked in refpolicy as likely candidates for relabeling by different domains. The larger point, I think, is that users often directly interact with types / contexts, particularly when dealing with the filesystem. These types should be documented (just like interfaces) and users should be given help determining appropriate types / contexts when labeling is needed (and users can mean unprivileged users or admins). Basically - the refpolicy notion that types are private resources of modules is broken. There is no encapsulation - so we need docs, etc. Karl -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with the words "unsubscribe selinux" without quotes as the message.