Re: [patch] file capabilities: Add no_file_caps switch

From: Alan Cox
Date: Wed Aug 27 2008 - 12:52:19 EST


On Wed, 27 Aug 2008 17:13:24 +0100
David Howells <dhowells@xxxxxxxxxx> wrote:

> Serge E. Hallyn <serue@xxxxxxxxxx> wrote:
>
> > (Also note that if you have such users, you'll want to ask David Howells not
> > to push the patch he has floated removing the ability to pass caps to
> > another task altogether when CONFIG_SECURITY_FILE_CAPABILITIES=n :)
>
> Ugh. My patch removes the ability to pass caps to another task under all
> circumstances because to do otherwise means that I have to make the kernel use
> RCU locking for a task to access its own creds. If you want this, I'll have
> to redo all my later patches.

That gets foul in another way - bounding the worst case RCU
memory utilisation if someone is sitting doing things like while(1)
change_credentials();
--
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/