I'm running Debian Bullseye and I've configured Yama security module by writing:


in /etc/sysctl.d/local.conf

In fact it seems all's well:

# sysctl -a | grep -i yama
kernel.yama.ptrace_scope = 3

However, even after a reboot, I keep having the following in the boot messages:

# dmesg | grep -i yama
[    0.100679] Yama: disabled by default; enable with sysctl kernel.yama.*

Why the kernel continues to have Yama disabled?

Thank you in advance for answering...

  • 1
    You have configured it but have you enabled and started it? Dec 18, 2021 at 19:56

1 Answer 1


Look at the timestamp of the message: This message is printed by the kernel during boot right at startup, to tell you, that its default configuration (which is not what sysctl.conf sets) is to have Yama disabled, and that it must be enabled explicitly, later on.

The settings in /etc/sysctl.conf are applied only much, much later when the system init process is going through its motions, which happens half an eternity (= a couple of seconds) later.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.