Re: [PATCH 2/2] printk: Add kernel parameter to control writes to /dev/kmsg

From: Linus Torvalds
Date: Wed Jun 15 2016 - 21:40:12 EST


On Tue, Jun 14, 2016 at 8:14 AM, Steven Rostedt <rostedt@xxxxxxxxxxx> wrote:
>>
>> Please also add a sysctl!
>>
>> I *so* want to enable this on distro kernels without having to reboot the
>> kernel...
>>
>
> But can we make it a one way feature (or a kernel parameter to do so?)
> that will prevent userspace from enabling it after it's been disabled.

Possibly we could just say that if a kernel command line option has
been given, that is absolute.

And then a sysctl for when you do *not* explicitly set if on the
kernel command line?

Linus