Clear Linux Moving Ahead With Blocking dmesg Access For Non-Root Users

Back in April I wrote about their plans for blocking dmesg access via the Linux kernel's CONFIG_SECURITY_DMESG_RESTRICT Kconfig build time switch. After evaluating the plan, they indeed are going ahead with it where only root/sudo users will be able to see the dmesg output. This also impacts container users as well as there even if you are the root user in a container you will now no longer be able to see the kernel logs of the host.
We'll see if other Linux distributions jump on board with restricting dmesg access to help kernel memory addresses from potentially being exposed.
More details on Clear Linux's enabling of SECURITY_DMESG_RESTRICT can be found via this mailing list post.
49 Comments