lkml.org 
[lkml]   [2010]   [May]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] anon_inode: set S_IFREG on the anon_inode
From
Date
On Fri, 2010-05-14 at 21:23 +0100, Al Viro wrote:
> On Fri, May 14, 2010 at 04:05:59PM -0400, Eric Paris wrote:
> > anon_inode_mkinode() sets inode->i_mode = S_IRUSR | S_IWUSR; This means
> > that (inode->i_mode & S_IFMT) == 0. This trips up some SELinux code that
> > needs to determine if a given inode is a regular file, a directory, etc.
> > The easiest solution is to just make sure that the anon_inode also sets
> > S_IFREG.
>
> How urgent that one is? It is obvious enough, so I could include it into
> the pull request for -final, but...

printk spam. No hurry. Probably should have put that in the commit
message.

-Eric



\
 
 \ /
  Last update: 2010-05-14 22:29    [W:0.031 / U:0.224 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site