linux sysctl tunable knob kernel.yama.ptrace_scope

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
1
down vote

favorite












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 ?










share|improve this question



















  • 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














up vote
1
down vote

favorite












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 ?










share|improve this question



















  • 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












up vote
1
down vote

favorite









up vote
1
down vote

favorite











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 ?










share|improve this question















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 ?







linux kernel sysctl






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Sep 19 at 19:32

























asked Aug 1 '17 at 19:22









Massimo

4001317




4001317







  • 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












  • 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







1




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





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 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




The 3.0.0 supports yama : I can set the values 0 and 1.
– Massimo
Aug 1 '17 at 19:32




1




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





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




@Mark, if you make an answer I will upvote.
– Massimo
Aug 5 '17 at 22:52















active

oldest

votes











Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f383263%2flinux-sysctl-tunable-knob-kernel-yama-ptrace-scope%23new-answer', 'question_page');

);

Post as a guest



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes















 

draft saved


draft discarded















































 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f383263%2flinux-sysctl-tunable-knob-kernel-yama-ptrace-scope%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

How to check contact read email or not when send email to Individual?

Displaying single band from multi-band raster using QGIS

How many registers does an x86_64 CPU actually have?