Message ID | 158755785373.28353.14350694888249056163.tip-bot2@tip-bot2 (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | [tip:,perf/core] parisc/perf: open access for CAP_PERFMON privileged process | expand |
diff --git a/arch/parisc/kernel/perf.c b/arch/parisc/kernel/perf.c index e1a8fee..d46b670 100644 --- a/arch/parisc/kernel/perf.c +++ b/arch/parisc/kernel/perf.c @@ -300,7 +300,7 @@ static ssize_t perf_write(struct file *file, const char __user *buf, else return -EFAULT; - if (!capable(CAP_SYS_ADMIN)) + if (!perfmon_capable()) return -EACCES; if (count != sizeof(uint32_t))