diff options
author | Thomas Richter <tmricht@linux.ibm.com> | 2023-06-14 10:37:42 +0300 |
---|---|---|
committer | Alexander Gordeev <agordeev@linux.ibm.com> | 2023-06-20 20:55:00 +0300 |
commit | d0d3e218d50bc93282df7bded9193e6fc9ccda48 (patch) | |
tree | 8ca944c20312bf30d3592a1bafc4e18e90a2fcf2 /net/unix/af_unix.c | |
parent | 11458e2b3ffa0e3798f392695d7aec210ac14efd (diff) | |
download | linux-d0d3e218d50bc93282df7bded9193e6fc9ccda48.tar.xz |
s390/cpum_cf: open access to hwctr device for CAP_PERFMON privileged process
The device /dev/hwctr was introduced to access complete
CPU Measurement facility counter sets via an ioctl system call.
The access the to device is limited to privileged processes
running as root or superuser. The capability CAP_SYS_ADMIN
is required. The device permissions are read/write for the
device owner root. There is no need for this restriction.
Make the device access permission read/write for all and
reduce the capabilities to CAP_PERFMON.
Any user space program with the CAP_PERFMON capability assigned to it
can now read and display the CPU Measurement facility counter sets.
For more details on perf tool usage and security, see linux
documentation in Documentation/admin-guide/perf-security.rst.
Signed-off-by: Thomas Richter <tmricht@linux.ibm.com>
Acked-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions