---

How to prevent unprivileged users from viewing dmesg command output on Linux

The kernel syslog contains debugging information that is often useful during exploitation of other vulnerabilities, such as kernel heap addresses. I want to restrict both normal users and root user inside LXD container ???hypervisor??? from viewing and using dmesg command output. How do I prevent non-root (unprivileged) Linux users from viewing the Linux kernel’s log buffer?

Get the Free Newsletter!

Subscribe to Developer Insider for top news, trends, & analysis