mbox series

[linux-next,0/2] Fix perf security check problem

Message ID 20241223070650.2810747-1-luogengkun@huaweicloud.com (mailing list archive)
Headers show
Series Fix perf security check problem | expand

Message

Luo Gengkun Dec. 23, 2024, 7:06 a.m. UTC
From: Luo Gengkun <luogengkun2@huawei.com>


Luo Gengkun (2):
  perf: Remove unnecessary parameter of security check
  perf: Return EACCESS when need perfmon capability

 arch/x86/events/intel/bts.c     |  2 +-
 arch/x86/events/intel/core.c    |  2 +-
 arch/x86/events/intel/p4.c      |  2 +-
 drivers/perf/arm_spe_pmu.c      |  4 ++--
 include/linux/lsm_hook_defs.h   |  2 +-
 include/linux/perf_event.h      | 12 ++++++------
 include/linux/security.h        |  5 ++---
 kernel/events/core.c            | 14 +++++++-------
 kernel/trace/trace_event_perf.c |  4 ++--
 security/security.c             |  5 ++---
 security/selinux/hooks.c        |  2 +-
 11 files changed, 26 insertions(+), 28 deletions(-)