aboutsummaryrefslogtreecommitdiffstats
path: root/lib/test_bitmap.c
diff options
context:
space:
mode:
authorMarco Elver <[email protected]>2021-07-05 08:44:53 +0000
committerPeter Zijlstra <[email protected]>2021-07-16 16:46:38 +0000
commitb068fc04de10fff8974f6ef32b861ad134d94ba4 (patch)
treecb1131829c9f6e3a06c46d98570abae7102ce528 /lib/test_bitmap.c
parentperf: Fix required permissions if sigtrap is requested (diff)
downloadkernel-b068fc04de10fff8974f6ef32b861ad134d94ba4.tar.gz
kernel-b068fc04de10fff8974f6ef32b861ad134d94ba4.zip
perf: Refactor permissions check into perf_check_permission()
Refactor the permission check in perf_event_open() into a helper perf_check_permission(). This makes the permission check logic more readable (because we no longer have a negated disjunction). Add a comment mentioning the ptrace check also checks the uid. No functional change intended. Signed-off-by: Marco Elver <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Reviewed-by: Dmitry Vyukov <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'lib/test_bitmap.c')
0 files changed, 0 insertions, 0 deletions