Re: [PATCH v2] printk: Add kernel parameter to disable writes to /dev/kmsg

From: Linus Torvalds
Date: Mon Apr 25 2016 - 15:34:28 EST


On Mon, Apr 25, 2016 at 12:28 PM, Linus Torvalds
<torvalds@xxxxxxxxxxxxxxxxxxxx> wrote:
>
> I think it should be a tristate with "yes/no/ratelimit", and let's
> default to ratelimit.

Oh, and in general we should *not* use "negative" settings. It's
really annoying to have to enable things with a double negative.

So even if you want to disable something, you should see it as an
"enable" that is on by default, and you can then disable things by
turning that setting off.

That just makes things way more logical.

(Which is not to say that we haven't made this mistake in the past, but ...)

Linus