dmesgrestrict
Dmesgrestrict is a term commonly used to refer to the Linux kernel parameter kernel.dmesg_restrict, which controls access to the kernel’s message buffer via the dmesg utility. The kernel maintains a ring buffer of kernel messages, which can contain information about hardware, drivers, and system state. Restricting access to this buffer is a security and privacy consideration on multi-user systems and in environments where sensitive information should not be exposed to unprivileged users.
The setting is exposed as a sysctl-like knob, typically available at /proc/sys/kernel/dmesg_restrict. In many kernel versions,
Configuration and management are performed through sysctl tools or by writing to the corresponding proc entry.
Security implications and usage considerations: enabling dmesgrestrict reduces the risk of leaking kernel messages to non-privileged
See also: dmesg, kernel.dmesg_restrict, /proc/sys/kernel/dmesg_restrict.