diff options
| author | Yafang Shao <[email protected]> | 2023-10-13 08:39:16 +0000 |
|---|---|---|
| committer | Andrii Nakryiko <[email protected]> | 2023-10-13 19:33:21 +0000 |
| commit | 236334aeec0f93217cf9235f2004e61a0a1a5985 (patch) | |
| tree | 2752c8b15edaa537be81e3beca7460a9eb0222c0 /tools/testing/selftests/bpf/progs/percpu_alloc_array.c | |
| parent | Merge branch 'Add cgroup sockaddr hooks for unix sockets' (diff) | |
| download | kernel-236334aeec0f93217cf9235f2004e61a0a1a5985.tar.gz kernel-236334aeec0f93217cf9235f2004e61a0a1a5985.zip | |
bpf: Avoid unnecessary audit log for CPU security mitigations
Check cpu_mitigations_off() first to avoid calling capable() if it is off.
This can avoid unnecessary audit log.
Fixes: bc5bc309db45 ("bpf: Inherit system settings for CPU security mitigations")
Suggested-by: Andrii Nakryiko <[email protected]>
Signed-off-by: Yafang Shao <[email protected]>
Signed-off-by: Andrii Nakryiko <[email protected]>
Link: https://lore.kernel.org/bpf/CAEf4Bza6UVUWqcWQ-66weZ-nMDr+TFU3Mtq=dumZFD-pSqU7Ow@mail.gmail.com/
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/testing/selftests/bpf/progs/percpu_alloc_array.c')
0 files changed, 0 insertions, 0 deletions
