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

> > The third case is the tricky one because we have to try and derive a
> > label. I've copied the code from the inode creation - so unless the
> > policy changes or the parent directory inode changes, I would've thought
> > we'd be okay.
>
> Only if the filesystem ultimately calls security_inode_init_security()
> on the new inode.

I'm not sure what you mean? What new inode?

The isec label derived by the code goes in the file struct, not the inode
struct because we can only get here if there isn't an inode struct.

David


\
 
 \ /
  Last update: 2014-11-27 16:01    [W:1.427 / U:1.240 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site