From b4b45dc731920c40eb8b5ba359f61e77cebfbe41 Mon Sep 17 00:00:00 2001 From: Bertrand Jacquin Date: Sat, 2 Nov 2019 15:46:28 +0000 Subject: factory-default: define kernel.dmesg_restrict sysctl --- factory-default/sys-apps/baselayout/etc/sysctl.conf | 3 +++ 1 file changed, 3 insertions(+) (limited to 'factory-default') diff --git a/factory-default/sys-apps/baselayout/etc/sysctl.conf b/factory-default/sys-apps/baselayout/etc/sysctl.conf index f8429068..7a328896 100644 --- a/factory-default/sys-apps/baselayout/etc/sysctl.conf +++ b/factory-default/sys-apps/baselayout/etc/sysctl.conf @@ -32,6 +32,9 @@ kernel.kptr_restrict = 2 # PID allocation wrap value kernel.pid_max = 4194304 +# Users must have CAP_SYSLOG to use dmesg +kernel.dmesg_restrict = 1 + # Do not allow O_CREAT open on regular files that we don't own in world # writable sticky directories, unless they are owned by the owner of the # directory -- cgit v1.2.3