Figure 9-10. Using sysctl to defeat the magic SysRq key
bash# sysctl -w kernel.sysrq=0 |
Figure 9-11. Configuring /etc/sysctl.conf to defeat the magic SysRq key
# Disables the magic SysRq key kernel.sysrq = 0 |
It is much better to compile your own kernel and set the following configuration parameter:
Figure 9-12. Kernel make menuconfig showing disabled SysRq key
Kernel hacking ---> [ ] Magic SysRq key |
This should place the following configuration parameter in /usr/src/linux/.config.
Figure 9-13. Kernel .config showing disabled SysRq key
# CONFIG_MAGIC_SYSRQ is not set |