I was playing around with
/dev/mem and found out that even as root user you cannot access the whole file if
It was new to me that there are mechanisms to prevent the root user from doing what he likes.
But as root I could simply alter the Linux kernel image and reboot (to disable the restriction). If the kernel image file is somehow protected I could still write to
/dev/sda or whatever the main disk is.
So my question is if settings
CONFIG_STRICT_DEVMEM=y is safe or is it easy for the root user to bypass?