diff options
author | Marco Elver <[email protected]> | 2021-07-05 10:44:53 +0200 |
---|---|---|
committer | Peter Zijlstra <[email protected]> | 2021-07-16 18:46:38 +0200 |
commit | b068fc04de10fff8974f6ef32b861ad134d94ba4 (patch) | |
tree | cb1131829c9f6e3a06c46d98570abae7102ce528 /drivers/fpga/machxo2-spi.c | |
parent | 9d7a6c95f62bc335b62aaf9d50590122bd03a796 (diff) |
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 'drivers/fpga/machxo2-spi.c')
0 files changed, 0 insertions, 0 deletions