Re: [PATCH 0/2] ima: policy search speedup

From: Linus Torvalds
Date: Tue Dec 11 2012 - 15:05:19 EST


On Tue, Dec 11, 2012 at 11:48 AM, Mimi Zohar <zohar@xxxxxxxxxxxxxxxxxx> wrote:
>
> Ok. To summarize, S_IMA indicates that there is a rule and that the iint
> was allocated. To differentiate between 'haven't looked/don't know' and
> 'definitely not', we need another bit. For this, you're suggesting
> using IS_PRIVATE()? Hopefully, I misunderstood.

No, for that, I'm suggesting using a new bit in i_flags.

The "IS_PRIVATE()" thing is more a "if you know a-priori that you
aren't interested in pseudo-filesystems, you can already check that
bit, because it will be set for things like /proc and shmem mappings
and pipes etc".

Dmitry seemed to imply that the biggest use for the new bit was for
taking out whole pseudo-filesystems in one go. That would pretty much
be what S_PRIVATE is.

Linus
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/