|
@@ -26,7 +26,7 @@ static int perf_trace_event_perm(struct ftrace_event_call *tp_event,
|
|
{
|
|
{
|
|
/* The ftrace function trace is allowed only for root. */
|
|
/* The ftrace function trace is allowed only for root. */
|
|
if (ftrace_event_is_function(tp_event) &&
|
|
if (ftrace_event_is_function(tp_event) &&
|
|
- perf_paranoid_kernel() && !capable(CAP_SYS_ADMIN))
|
|
|
|
|
|
+ perf_paranoid_tracepoint_raw() && !capable(CAP_SYS_ADMIN))
|
|
return -EPERM;
|
|
return -EPERM;
|
|
|
|
|
|
/* No tracing, just counting, so no obvious leak */
|
|
/* No tracing, just counting, so no obvious leak */
|