Re: [PATCH] printk: Add loglevel for "do not print to consoles".

From: Steven Rostedt
Date: Fri Apr 24 2020 - 12:21:50 EST


On Sat, 25 Apr 2020 01:10:15 +0900
Tetsuo Handa <penguin-kernel@xxxxxxxxxxxxxxxxxxx> wrote:

> KERN_NO_CONSOLES is a mechanism for implementing user decided policy. As long as
> userspace can control whether to use KERN_NO_CONSOLES (e.g. sysctl), there should
> be no problem with adding KERN_NO_CONSOLES (i.e. this patch) to the kernel side.

How would you define what gets "KERN_NO_CONSOLES"? Is it going to be a
sysctl switch?

Also, how does one control the log level of prints with KERN_NO_CONSOLES?

-- Steve