Research
.
Skip Search Box

SELinux Mailing List

Re: Security issues with local filesystem caching

From: David Howells <dhowells_at_redhat.com>
Date: Thu, 26 Oct 2006 11:45:44 +0100


Al Viro <viro@ftp.linux.org.uk> wrote:

> > > Currently, CacheFiles temporarily changes fsuid and fsgid to 0 whilst
> > > doing its own pathwalk through the cache and whilst creating files and
> > > directories in the cache. This allows it to deal with DAC security
> > > directly. All the directories it creates are given permissions mask
> > > 0700 and all files 0000.
> >
> > That seems sensible and fine. It is precisely why we added a separate
> > fsuid in the first place so that the user space nfsd could take on an fs
> > identity without breaking signal and other security based forms.
>
> I see a problem with that; not sure if that's what Christoph is objecting
> to. What about access to cache tree by root process that has nothing
> to do with that daemon? Should it get free access to that stuff, regardless
> of what policy might say about access to cached files? Or should we at
> least try to make sure that we have the instances in cache no more permissive
> than originals on NFS?

Well, if the data is being copied to where userspace can get at it, and if MAC is disabled, then it doesn't matter: root can always gain access if it wants to, no matter what the DAC-related attributes are.

I'm quite happy to attach security data to the files in the cache, and use MAC if it's available, but most of the time, it can't be the MAC-related attributes of the process in who's context we're running.

David

--
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.
Received on Thu 26 Oct 2006 - 06:46:52 EDT
 

Date Posted: Jan 15, 2009 | Last Modified: Jan 15, 2009 | Last Reviewed: Jan 15, 2009

 
bottom

National Security Agency / Central Security Service