lkml.org 
[lkml]   [2012]   [Dec]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH 0/2] ima: policy search speedup
On Tue, Dec 11, 2012 at 12:15 PM, Eric Paris <eparis@parisplace.org> wrote:
>
> I know it isn't relevant to the final solution, but this is simply
> wrong. IS_PRIVATE() means 'this inode is filesystem internal.' It is
> not used by anything except rieser and the anon_inode. If it is used
> by psuedo filesystems in general, like /proc, shmem mappings, and
> pipes that is a huge bug and is absolutely wrong.

Hmm.. The magic anonfs inode definitely sets it, as far as I can tell.

But it turns out that I was wrong anyway, and you are largely right:
pipes and sockets don't use the anonfs inode (they allocate their own
inodes directly using 'new_inode_pseudo()'), and neither does /proc.

So it's actually only signalfd and timerfd and some other special
things like kvm internal file descriptors that use it.

So never mind about S_PRIVATE, it has odd semantics.

Linus


\
 
 \ /
  Last update: 2012-12-11 22:01    [W:0.151 / U:0.144 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site