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

2016-06-16 Thread Borislav Petkov
On Wed, Jun 15, 2016 at 03:40:04PM -1000, Linus Torvalds wrote: > 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? Ok, how about this ontop? It is only

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

2016-06-16 Thread Borislav Petkov
On Wed, Jun 15, 2016 at 03:40:04PM -1000, Linus Torvalds wrote: > 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? Ok, how about this ontop? It is only

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

2016-06-15 Thread Linus Torvalds
On Tue, Jun 14, 2016 at 8:14 AM, Steven Rostedt 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

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

2016-06-15 Thread Linus Torvalds
On Tue, Jun 14, 2016 at 8:14 AM, Steven Rostedt 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

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

2016-06-14 Thread Borislav Petkov
On Tue, Jun 14, 2016 at 02:14:56PM -0400, Steven Rostedt wrote: > 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. You mean to be able to do boot with: "printk.kmsg=off_and_i_mean_it" which then

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

2016-06-14 Thread Borislav Petkov
On Tue, Jun 14, 2016 at 02:14:56PM -0400, Steven Rostedt wrote: > 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. You mean to be able to do boot with: "printk.kmsg=off_and_i_mean_it" which then

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

2016-06-14 Thread Steven Rostedt
On Tue, 14 Jun 2016 12:21:35 +0200 Ingo Molnar wrote: > * Borislav Petkov wrote: > > > From: Borislav Petkov > > > > Add a "printk.kmsg" kernel command line parameter which controls how > > userspace writes into /dev/kmsg. It has two options: >

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

2016-06-14 Thread Steven Rostedt
On Tue, 14 Jun 2016 12:21:35 +0200 Ingo Molnar wrote: > * Borislav Petkov wrote: > > > From: Borislav Petkov > > > > 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

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

2016-06-14 Thread Ingo Molnar
* Borislav Petkov wrote: > From: Borislav Petkov > > 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

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

2016-06-14 Thread Ingo Molnar
* Borislav Petkov wrote: > From: Borislav Petkov > > 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

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

2016-06-14 Thread Borislav Petkov
From: Borislav Petkov 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 The default setting is to ratelimit the messages

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

2016-06-14 Thread Borislav Petkov
From: Borislav Petkov 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 The default setting is to ratelimit the messages written to it.