diff options
author | Marco Elver <elver@google.com> | 2021-07-05 10:44:53 +0200 |
---|---|---|
committer | Peter Zijlstra <peterz@infradead.org> | 2021-07-16 18:46:38 +0200 |
commit | b068fc04de10fff8974f6ef32b861ad134d94ba4 (patch) | |
tree | cb1131829c9f6e3a06c46d98570abae7102ce528 /drivers/firewire/core-iso.c | |
parent | 9d7a6c95f62bc335b62aaf9d50590122bd03a796 (diff) | |
download | linux-b068fc04de10fff8974f6ef32b861ad134d94ba4.tar.bz2 |
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 <elver@google.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Dmitry Vyukov <dvyukov@google.com>
Link: https://lore.kernel.org/r/20210705084453.2151729-2-elver@google.com
Diffstat (limited to 'drivers/firewire/core-iso.c')
0 files changed, 0 insertions, 0 deletions