Re: [PATCH 2/2] printk: Add kernel parameter to control writes to /dev/kmsg
From: Steven Rostedt
Date: Tue Jun 14 2016 - 14:15:10 EST
On Tue, 14 Jun 2016 12:21:35 +0200
Ingo Molnar <mingo@xxxxxxxxxx> wrote:
> * Borislav Petkov <bp@xxxxxxxxx> wrote:
>
> > From: Borislav Petkov <bp@xxxxxxx>
> >
> > Add a "printk.kmsg" kernel command line parameter which controls how
> > userspace writes into /dev/kmsg. It has two options:
> >
> > * on - unlimited logging from userspace
> > * off - logging from userspace gets ignored
>
> 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.
-- Steve