Commit 0a041eb
perf/core: Call LSM hook after copying perf_event_attr
It passes the attr struct to the security_perf_event_open() but it's
not initialized yet.
Fixes: da97e18 ("perf_event: Add support for LSM and SELinux checks")
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Joel Fernandes (Google) <joel@joelfernandes.org>
Cc: stable@vger.kernel.org
Link: https://lkml.kernel.org/r/20221220223140.4020470-1-namhyung@kernel.org1 parent a551844 commit 0a041eb
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12321 | 12321 | | |
12322 | 12322 | | |
12323 | 12323 | | |
12324 | | - | |
12325 | | - | |
| 12324 | + | |
12326 | 12325 | | |
12327 | 12326 | | |
12328 | 12327 | | |
12329 | | - | |
| 12328 | + | |
| 12329 | + | |
12330 | 12330 | | |
12331 | 12331 | | |
12332 | 12332 | | |
| |||
0 commit comments