From 1c2afc1f253e15d2605d1bef0e323e6e972a2484 Mon Sep 17 00:00:00 2001 From: Raja Grewal Date: Mon, 15 Jul 2024 15:01:48 +1000 Subject: [PATCH] Update presentation of the `kernel.printk` sysctl --- usr/lib/sysctl.d/30_silent-kernel-printk.conf | 14 +++++++++----- usr/lib/sysctl.d/990-security-misc.conf | 4 ++++ 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/usr/lib/sysctl.d/30_silent-kernel-printk.conf b/usr/lib/sysctl.d/30_silent-kernel-printk.conf index 7283bcb..de73876 100644 --- a/usr/lib/sysctl.d/30_silent-kernel-printk.conf +++ b/usr/lib/sysctl.d/30_silent-kernel-printk.conf @@ -1,10 +1,14 @@ ## Copyright (C) 2019 - 2024 ENCRYPTED SUPPORT LP ## See the file COPYING for copying conditions. -## NOTE: -## For higher verbosity, delete file /etc/default/grub.d/41_quiet.cfg. -## Alternatively, install the debug-misc package which will undo these settings. - ## Prevent kernel information leaks in the console during boot. +## Must be used in combination with the kernel boot parameters. +## See /etc/default/grub.d/41_quiet_boot.cfg for implementation. ## -kernel.printk = 3 3 3 3 +## https://www.kernel.org/doc/html/latest/core-api/printk-basics.html +## +kernel.printk=3 3 3 3 + +## For Increased Log Verbosity: +## Adjust (or comment out) the kernel parameters in /etc/default/grub.d/41_quiet_boot.cfg. +## Alternatively, installing the debug-misc package will undo these settings. \ No newline at end of file diff --git a/usr/lib/sysctl.d/990-security-misc.conf b/usr/lib/sysctl.d/990-security-misc.conf index 5fbe51c..c1316be 100644 --- a/usr/lib/sysctl.d/990-security-misc.conf +++ b/usr/lib/sysctl.d/990-security-misc.conf @@ -38,6 +38,10 @@ kernel.kptr_restrict=2 kernel.dmesg_restrict=1 ## Prevent kernel information leaks in the console during boot. +## Must be used in combination with the kernel boot parameters. +## See /etc/default/grub.d/41_quiet_boot.cfg for implementation. +## +## https://www.kernel.org/doc/html/latest/core-api/printk-basics.html ## ## See /usr/lib/sysctl.d/30_silent-kernel-printk.conf for implementation. ##