Is it possible to prevent kernel messages from appearing in dmesg output?
E.g. I am running software that terminates PPPoE tunnels. One of the features it provides is the ability to set custom interface names.
However this results in messages in dmesg such as:
... [Mon May 28 09:50:06 2018] ifname.3: renamed from pppoe3 [Mon May 28 11:07:40 2018] ifname.4: renamed from pppoe4 [Mon May 28 11:11:37 2018] ifname.5: renamed from pppoe5 [Mon May 28 11:18:26 2018] ifname.6: renamed from pppoe6 [Mon May 28 11:40:46 2018] ifname.7: renamed from pppoe7 ...
I tracked the function responsible for it to be
The problem with these messages it is that they fill the buffer and override any other important messages (driver crashes, iptable warnings, etc.).
Is it possible to supress this specific message from appearing in dmesg output?
I tried setting sysctl kernel.printk but it seems to have no effect, and messages appear in dmesg output regardless of the settings.