From: Casey Schaufler Subject: Re: [PATCH 09/14] CacheFiles: Permit a process's create SID to be overridden [try #2] Date: Thu, 9 Aug 2007 10:04:56 -0700 (PDT) Message-ID: <830177.29212.qm@web36605.mail.mud.yahoo.com> References: <20070809160525.17906.35400.stgit@warthog.cambridge.redhat.com> Reply-To: casey@schaufler-ca.com, Linux filesystem caching discussion list Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Cc: linux-fsdevel@vger.kernel.org, linux-cachefs@redhat.com, nfsv4@linux-nfs.org, linux-kernel@vger.kernel.org To: David Howells , torvalds@osdl.org, akpm@osdl.org, steved@redhat.com, trond.myklebust@fys.uio.no Return-path: In-Reply-To: <20070809160525.17906.35400.stgit@warthog.cambridge.redhat.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-cachefs-bounces@redhat.com Errors-To: linux-cachefs-bounces@redhat.com List-Id: linux-fsdevel.vger.kernel.org --- David Howells wrote: > Make it possible for a process's file creation SID to be temporarily > overridden > by CacheFiles so that files created in the cache have the right label > attached. >=20 > Without this facility, files created in the cache will be given the cur= rent > file creation SID of whatever process happens to have invoked CacheFile= s > indirectly by means of opening a netfs file at the time the cache file = is > created. This is SELinux specific funtionality and should be done in the SELinux code. You should not be adding interfaces that are SELinux specific, in this case using secids instead of the LSM blob interfaces. Casey Schaufler casey@schaufler-ca.com