move "kernel.printk = 3 3 3 3" to separate file /etc/sysctl.d/30_silent-kernel-printk.conf

so package debug-misc can easily disable it

https://phabricator.whonix.org/T950
This commit is contained in:
Patrick Schleizer 2020-05-14 13:47:58 -04:00
parent 81cb6ad246
commit 3cd7b144bb
No known key found for this signature in database
GPG Key ID: CB8D50BB77BB3C48
2 changed files with 6 additions and 5 deletions

View File

@ -8,10 +8,6 @@ kernel.core_pattern=|/bin/false
## Restricts the kernel log to root only.
kernel.dmesg_restrict=1
## Prevent kernel info leaks in console during boot.
## https://phabricator.whonix.org/T950
kernel.printk = 3 3 3 3
## Don't allow writes to files that we don't own
## in world writable sticky directories, unless
## they are owned by the owner of the directory.
@ -149,4 +145,3 @@ vm.unprivileged_userfaultfd=0
## - https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Performance_Tuning_Guide/s-memory-tunables.html
## - https://en.wikipedia.org/wiki/Swappiness
vm.swappiness=1

View File

@ -0,0 +1,6 @@
## Copyright (C) 2019 - 2020 ENCRYPTED SUPPORT LP <adrelanos@riseup.net>
## See the file COPYING for copying conditions.
## Prevent kernel info leaks in console during boot.
## https://phabricator.whonix.org/T950
kernel.printk = 3 3 3 3