Re: [PATCH 1/2] perf tools: Check kptr_restrict for root

2016-05-24 Thread Arnaldo Carvalho de Melo
Em Tue, May 24, 2016 at 09:21:27AM +, Wang Nan escreveu: > If kptr_restrict is set to 2, even root is not allowed to see pointers. > This patch checks kptr_restrict even if euid == 0. For root, report > error if kptr_restrict is 2. Improves the situation, but kptr_restrict=2 still causes a seg

[PATCH 1/2] perf tools: Check kptr_restrict for root

2016-05-24 Thread Wang Nan
If kptr_restrict is set to 2, even root is not allowed to see pointers. This patch checks kptr_restrict even if euid == 0. For root, report error if kptr_restrict is 2. Signed-off-by: Wang Nan Cc: Arnaldo Carvalho de Melo Cc: Zefan Li Cc: pi3or...@163.com --- tools/perf/util/symbol.c | 16