Is there a way to set kptr_restrict to 0?

前端 未结 2 511
盖世英雄少女心
盖世英雄少女心 2021-02-05 12:17

I am currently having trouble running linux perf, mostly because /proc/sys/kernel/kptr_restrict is currently set to 1.

However, if I try to /proc/sys/

2条回答
  •  故里飘歌
    2021-02-05 12:44

    In your example, echo is running as root, but your shell is running as you.

    So please try this command:

    sudo sh -c " echo 0 > /proc/sys/kernel/kptr_restrict"
    

提交回复
热议问题