title: Is there a way to set kptr_restrict to 0?
body: <p>I am currently having trouble running linux perf, mostly because <code>/proc/sys/kernel/kptr_restrict</code> is currently set to 1.</p>
  
  <p>However, if I try to <code>/proc/sys/kernel/kptr_restrict</code> by echoing 0 to it as follows...</p>
  
  <pre><code>echo 0 &gt; /proc/sys/kernel/kptr_restrict
  </code></pre>
  
  <p>I get a permission denied error. I don't think I can change permissions on it either.</p>
  
  <p>Is there a way to set this directly somehow? I am super user. I don't think perf will function acceptably without this being set.</p>