Check the kernel.dmesg_restrict sysctl