Sysrq input is a legacy input key from keyboard (usually next to print-screen) that allows connected users to perform low-level commands since Debian Etch. This is completely undesirable. This section guides you on how to disable Sysrq function.
These are the identified threats related to Debian Software.
By default, the kernel starting from Debian Etch allows user to perform low-level commands using sysrq key.
Here are the list if actions to counter the issues.
To disable the Sysrq input, simply set kernel.sysrq=0
in /etc/sysctl.conf
. You can:
/etc/sysctl.d/disable-sysrq.conf
and add kernel.sysrq=0
into it.To avoid restarting, you can:
echo "0x0" >/proc/sys/kernel/sysrq
That's all for hardening Debian by disabling sysrq input.