aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/trace-event-scripting.c
diff options
context:
space:
mode:
authorJiri Olsa <[email protected]>2014-07-16 14:33:29 +0200
committerIngo Molnar <[email protected]>2014-07-28 10:01:38 +0200
commitf4be073db878d0e79f74bc36f1642847781791a0 (patch)
tree27af2c38ab25f889f0e850ce856aaf41a15add57 /tools/perf/util/trace-event-scripting.c
parent5030c69755416d19516c0a61cd988a0e0062e041 (diff)
perf: Check permission only for parent tracepoint event
There's no need to check cloned event's permission once the parent was already checked. Also the code is checking 'current' process permissions, which is not owner process for cloned events, thus could end up with wrong permission check result. Reported-by: Alexander Yarygin <[email protected]> Tested-by: Alexander Yarygin <[email protected]> Signed-off-by: Jiri Olsa <[email protected]> Signed-off-by: Peter Zijlstra <[email protected]> Cc: Arnaldo Carvalho de Melo <[email protected]> Cc: Corey Ashford <[email protected]> Cc: Frederic Weisbecker <[email protected]> Cc: Paul Mackerras <[email protected]> Cc: Linus Torvalds <[email protected]> Cc: Steven Rostedt <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions