Files
SukiSU-Ultra/kernel
Tashfin Shakeer Rhythm 8727664fa9 kernel: selinux: rules: Remove unnecessary RCU dereference in get_policydb()
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>
2025-08-10 18:09:06 +08:00
..
2025-03-17 02:48:59 +08:00
2025-03-17 02:48:59 +08:00
2025-03-17 02:48:59 +08:00
2025-06-19 18:25:28 +08:00
2025-03-17 02:48:59 +08:00
2025-07-05 15:59:58 +08:00
2025-03-17 02:48:59 +08:00
2025-03-17 02:48:59 +08:00
2025-03-17 02:48:59 +08:00
2025-03-17 02:48:59 +08:00
2025-03-17 02:48:59 +08:00
2025-07-05 21:27:04 +08:00
2025-03-17 02:48:59 +08:00