How can I disable magic sysrq in linux?
by tyty from LinuxQuestions.org on (#6HBA5)
I have a prodlem with disable sysrq. I had done follow actions but it didn't help.
1) # grep "SYSRQ" /boot/config-$(uname -r)
CONFIG_MAGIC_SYSRQ=y
CONFIG_MAGIC_SYSRQ_DEFAULT_ENABLE=0x0
# CONFIG_MAGIC_SYSRQ_SERIAL is not set
2) # sysctl -a | grep sysrq
kernel.sysrq = 0
3) # cat /etc/sysctl.conf | grep sysrq
kernel.sysrq = 0
4) # cat /proc/cmdline
BOOT_IMAGE=/boot/vmlinuz-5.14.21-at154.148.1-default root=/dev/mapper/system-root rw systemd.show_status=1 console=ttyS0,115200 console=tty0 init_on_alloc=1 iommu=force iommu.strict=1 iommu.passthrough=0 randomize_kstack_offset=1 vsyscall=none debugfs=no-mount tsx=off splash=silent resume=/dev/system/swap preempt=full mitigations=auto quiet security=apparmor
But when I do
# echo o > /proc/sysrq-trigger
The machime immediately powers off
Have somebody faced with it and can help?
1) # grep "SYSRQ" /boot/config-$(uname -r)
CONFIG_MAGIC_SYSRQ=y
CONFIG_MAGIC_SYSRQ_DEFAULT_ENABLE=0x0
# CONFIG_MAGIC_SYSRQ_SERIAL is not set
2) # sysctl -a | grep sysrq
kernel.sysrq = 0
3) # cat /etc/sysctl.conf | grep sysrq
kernel.sysrq = 0
4) # cat /proc/cmdline
BOOT_IMAGE=/boot/vmlinuz-5.14.21-at154.148.1-default root=/dev/mapper/system-root rw systemd.show_status=1 console=ttyS0,115200 console=tty0 init_on_alloc=1 iommu=force iommu.strict=1 iommu.passthrough=0 randomize_kstack_offset=1 vsyscall=none debugfs=no-mount tsx=off splash=silent resume=/dev/system/swap preempt=full mitigations=auto quiet security=apparmor
But when I do
# echo o > /proc/sysrq-trigger
The machime immediately powers off
Have somebody faced with it and can help?