summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBertrand Jacquin <bertrand@jacquin.bzh>2020-01-09 00:54:58 +0000
committerBertrand Jacquin <bertrand@jacquin.bzh>2020-01-09 00:54:58 +0000
commitdb2a30b05721fe219726cca388a56be82b192f22 (patch)
tree42a27be0e15e54c87a5fc88d53e7326148183f58
parentfactory-default: refresh net-p2p/xmr-stak-rx sysctl (diff)
downloadportage-db2a30b05721fe219726cca388a56be82b192f22.tar.xz
factory-default: define kernel.perf_event_paranoid sysctl
-rw-r--r--factory-default/sys-apps/baselayout/etc/sysctl.conf3
1 files changed, 3 insertions, 0 deletions
diff --git a/factory-default/sys-apps/baselayout/etc/sysctl.conf b/factory-default/sys-apps/baselayout/etc/sysctl.conf
index 21a5fabf..8882326f 100644
--- a/factory-default/sys-apps/baselayout/etc/sysctl.conf
+++ b/factory-default/sys-apps/baselayout/etc/sysctl.conf
@@ -35,6 +35,9 @@ kernel.pid_max = 4194304
# Users must have CAP_SYSLOG to use dmesg
kernel.dmesg_restrict = 1
+# Disallow kernel profiling by users without CAP_SYS_ADMIN
+kernel.perf_event_paranoid = 2
+
# 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