From: Russell Coker Reply-To: russell@coker.com.au To: Joshua Brindle Subject: Re: Real simple cache that removes most of the lookups in mcstrans Date: Fri, 19 May 2006 23:32:56 +1000 Cc: Daniel J Walsh , Stephen Smalley , Steve Grubb , SE Linux References: <446AFED3.9010800@redhat.com> <446B3B51.1060703@redhat.com> <446B3E11.6040302@gentoo.org> In-Reply-To: <446B3E11.6040302@gentoo.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Message-Id: <200605192333.01639.russell@coker.com.au> Sender: owner-selinux@tycho.nsa.gov List-Id: selinux@tycho.nsa.gov On Thursday 18 May 2006 01:15, Joshua Brindle wrote: > > Yes, you mean translation change, I think. Since I do not see where > > policy reload would effect this. We could add some kind of timer to > > this, but refreshing the cache is a small problem, but this same > > problem existed with shared libraries. > > Because on an MLS system the server will be deciding whether or not you > have permission to see a particular translation and a policy reload > would affect that. The same problem did exist with the shared libraries > but we aren't using them anymore :) the server should be smart enough to > handle this. If client side caching is really desired it needs to work > like an avc where you can get flush notifications from the server. Client side caching is not required to work the same way as server-side. The idea behind SE Linux is that the kernel enforces access control in almost all situations, and that applications which enforce access control are the exception (this means crond, login programs, the X server for SE-X, and not much else). If an application such as "ls" gets a copy of the translation data then there is no point in writing the library code such that the data can not be (easily) displayed a second time. The information once available is presumed to have already been displayed to the user or stored in a way such that it can be obtained in another manner. -- http://www.coker.com.au/selinux/ My NSA Security Enhanced Linux packages http://www.coker.com.au/bonnie++/ Bonnie++ hard drive benchmark http://www.coker.com.au/postal/ Postal SMTP/POP benchmark http://www.coker.com.au/~russell/ My home page -- 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.