lkml.org 
[lkml]   [2015]   [Jun]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH 6/8] SELinux: Handle opening of a unioned file
Date
Stephen Smalley <sds@tycho.nsa.gov> wrote:

> > + /* We need to check that the union file is allowed to be opened as well
> > + * as checking that the lower file is allowed to be opened.
>
> Hmm...so if I try to open a file for write access, then we are going to
> require that the process be allowed to write to both the union/overlay
> inode and to the lower inode? That seems problematic for the containers
> use case where no write access will be granted to the lower files.

Actually, this comment should probably be deleted. I am currently thinking
that access through the overlay fs should only be mediated by the label on the
overlay inode and should not involve the lower inode.

Possibly, then the lower file label should be reckoned against the label of
whoever created the *mount*.

David


\
 
 \ /
  Last update: 2015-06-18 17:21    [W:0.095 / U:0.056 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site