1

The reference lists as values 0,1,2,3.

Today I tried it on two servers :

  1. kernel 3.0.0

sysctl -w kernel.yama.ptrace_scope=3

error: "Invalid argument" setting key "kernel.yama.ptrace_scope"

  1. kernel 4.9.38

sysctl kernel.yama.ptrace_scope

error: "kernel.yama.ptrace_scope" is an unknown key

Where can I get this tunable change history ? Is it replaced by a new name in recent kernels ?

Is the old kernel.yama.protected_sticky_symlinks renamed to fs.protected_symlinks ?

  • 1
    Do these systems have anything in the directory /proc/sys/kernel/yama ? If not, then they may not have been configured with yama (it's optional). – Mark Plotnick Aug 1 '17 at 19:28
  • The 4.9.38, Amazon AMI instance, hasn't /proc/sys/kernel/yama – Massimo Aug 1 '17 at 19:32
  • The 3.0.0 supports yama : I can set the values 0 and 1. – Massimo Aug 1 '17 at 19:32
  • 1
    As far as I can tell, yama patches were around as of 2.6, and made it into the mainstream kernel in 3.4, where ptrace_scope had an allowable range of [0,1]. In 3.5, ptrace_scope had an allowable range of [0,3]. – Mark Plotnick Aug 2 '17 at 19:25
  • @Mark, if you make an answer I will upvote. – Massimo Aug 5 '17 at 22:52

Your Answer

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

Browse other questions tagged or ask your own question.