/proc/sys/kernel/yama/ptrace_scope keeps resetting to 1

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











up vote
3
down vote

favorite












Running Xubuntu 16.04.1 LTS 64-bit.



/proc/sys/kernel/yama/ptrace_scope keeps resetting to 1 if I reboot, despite me changing it to 0 manually. How can I keep ptrace_scope set to a value of 0?










share|improve this question

























    up vote
    3
    down vote

    favorite












    Running Xubuntu 16.04.1 LTS 64-bit.



    /proc/sys/kernel/yama/ptrace_scope keeps resetting to 1 if I reboot, despite me changing it to 0 manually. How can I keep ptrace_scope set to a value of 0?










    share|improve this question























      up vote
      3
      down vote

      favorite









      up vote
      3
      down vote

      favorite











      Running Xubuntu 16.04.1 LTS 64-bit.



      /proc/sys/kernel/yama/ptrace_scope keeps resetting to 1 if I reboot, despite me changing it to 0 manually. How can I keep ptrace_scope set to a value of 0?










      share|improve this question













      Running Xubuntu 16.04.1 LTS 64-bit.



      /proc/sys/kernel/yama/ptrace_scope keeps resetting to 1 if I reboot, despite me changing it to 0 manually. How can I keep ptrace_scope set to a value of 0?







      kernel wine






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Dec 10 '16 at 23:19









      Aaron Franke

      3591315




      3591315




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          5
          down vote



          accepted










          /proc values are stored in RAM so it isn't persistent. But it read its initial values from a file. You can permanently change the value of /proc/sys/kernel/yama/ptrace_scope to 0 by editing the file /etc/sysctl.d/10-ptrace.conf and change the line:



          kernel.yama.ptrace_scope = 1


          To



          kernel.yama.ptrace_scope = 0





          share|improve this answer




















          • Is any security risk attached to setting this permanently?
            – Philipp Ludwig
            Jun 25 at 18:59










          • Yes, there is some risks. You can view this post for more details [askubuntu.com/questions/146160/…
            – Dababi
            Jul 2 at 8:41











          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%2f329504%2fproc-sys-kernel-yama-ptrace-scope-keeps-resetting-to-1%23new-answer', 'question_page');

          );

          Post as a guest






























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          5
          down vote



          accepted










          /proc values are stored in RAM so it isn't persistent. But it read its initial values from a file. You can permanently change the value of /proc/sys/kernel/yama/ptrace_scope to 0 by editing the file /etc/sysctl.d/10-ptrace.conf and change the line:



          kernel.yama.ptrace_scope = 1


          To



          kernel.yama.ptrace_scope = 0





          share|improve this answer




















          • Is any security risk attached to setting this permanently?
            – Philipp Ludwig
            Jun 25 at 18:59










          • Yes, there is some risks. You can view this post for more details [askubuntu.com/questions/146160/…
            – Dababi
            Jul 2 at 8:41















          up vote
          5
          down vote



          accepted










          /proc values are stored in RAM so it isn't persistent. But it read its initial values from a file. You can permanently change the value of /proc/sys/kernel/yama/ptrace_scope to 0 by editing the file /etc/sysctl.d/10-ptrace.conf and change the line:



          kernel.yama.ptrace_scope = 1


          To



          kernel.yama.ptrace_scope = 0





          share|improve this answer




















          • Is any security risk attached to setting this permanently?
            – Philipp Ludwig
            Jun 25 at 18:59










          • Yes, there is some risks. You can view this post for more details [askubuntu.com/questions/146160/…
            – Dababi
            Jul 2 at 8:41













          up vote
          5
          down vote



          accepted







          up vote
          5
          down vote



          accepted






          /proc values are stored in RAM so it isn't persistent. But it read its initial values from a file. You can permanently change the value of /proc/sys/kernel/yama/ptrace_scope to 0 by editing the file /etc/sysctl.d/10-ptrace.conf and change the line:



          kernel.yama.ptrace_scope = 1


          To



          kernel.yama.ptrace_scope = 0





          share|improve this answer












          /proc values are stored in RAM so it isn't persistent. But it read its initial values from a file. You can permanently change the value of /proc/sys/kernel/yama/ptrace_scope to 0 by editing the file /etc/sysctl.d/10-ptrace.conf and change the line:



          kernel.yama.ptrace_scope = 1


          To



          kernel.yama.ptrace_scope = 0






          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Dec 10 '16 at 23:28









          Dababi

          2,056916




          2,056916











          • Is any security risk attached to setting this permanently?
            – Philipp Ludwig
            Jun 25 at 18:59










          • Yes, there is some risks. You can view this post for more details [askubuntu.com/questions/146160/…
            – Dababi
            Jul 2 at 8:41

















          • Is any security risk attached to setting this permanently?
            – Philipp Ludwig
            Jun 25 at 18:59










          • Yes, there is some risks. You can view this post for more details [askubuntu.com/questions/146160/…
            – Dababi
            Jul 2 at 8:41
















          Is any security risk attached to setting this permanently?
          – Philipp Ludwig
          Jun 25 at 18:59




          Is any security risk attached to setting this permanently?
          – Philipp Ludwig
          Jun 25 at 18:59












          Yes, there is some risks. You can view this post for more details [askubuntu.com/questions/146160/…
          – Dababi
          Jul 2 at 8:41





          Yes, there is some risks. You can view this post for more details [askubuntu.com/questions/146160/…
          – Dababi
          Jul 2 at 8:41


















           

          draft saved


          draft discarded















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f329504%2fproc-sys-kernel-yama-ptrace-scope-keeps-resetting-to-1%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?