157df04c8ba2c7b081d9385b76d3ac7f868b8fd2
get_policydb() uses rcu_dereference() to read pointers to selinux_state.policy. But in the SELinux implementation, these pointers are assigned once during initialization and never changed with rcu_assign_pointer(), rendering the rcu_dereference() call in get_policydb() completely useless. This just adds unwanted overhead and implies concurrency pattern that is not even present in the kernel. Therefore, read the pointers directly since it's safe. * selinux_state.ss needs more context. Signed-off-by: Tashfin Shakeer Rhythm <tashfinshakeerrhythm@gmail.com>
Description
Languages
Kotlin
67.1%
C
20%
Rust
11.1%
Shell
0.9%
Makefile
0.4%
Other
0.4%