summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorSong Liu <songliubraving@fb.com>2018-04-11 20:02:37 +0200
committerIngo Molnar <mingo@kernel.org>2018-04-12 09:55:50 +0200
commit32e6e967fb36bf77ed99221ae3ce1909f045d8f9 (patch)
treedc3142bceb925e06540b65bea06477e5219f9968 /arch
parenttracing/uprobe_event: Fix strncpy corner case (diff)
downloadlinux-32e6e967fb36bf77ed99221ae3ce1909f045d8f9.tar.xz
linux-32e6e967fb36bf77ed99221ae3ce1909f045d8f9.zip
perf/core: Need CAP_SYS_ADMIN to create k/uprobe with perf_event_open()
Non-root user cannot create kprobe or uprobe through the text-based interface (kprobe_events, uprobe_events),so they should not be able to create probes via perf_event_open() either. Reported-by: Vince Weaver <vincent.weaver@maine.edu> Signed-off-by: Song Liu <songliubraving@fb.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Fixes: 33ea4b24277b ("perf/core: Implement the 'perf_uprobe' PMU") Fixes: e12f03d7031a ("perf/core: Implement the 'perf_kprobe' PMU") Link: http://lkml.kernel.org/r/C0B2EFB5-C403-4BDB-9046-C14B3EE66999@fb.com Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions