Files
SukiSU-Ultra/kernel
Tashfin Shakeer Rhythm 157df04c8b 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:02:29 +08:00
..
2024-04-27 09:55:24 +08:00
2023-04-13 10:41:49 +08:00
2023-06-16 19:53:15 +08:00
2025-06-19 18:22:05 +08:00
2024-04-27 09:55:24 +08:00
2025-07-05 16:29:40 +08:00
2023-06-16 19:53:15 +08:00
2025-06-30 16:33:09 +08:00
2023-06-16 19:53:15 +08:00
2023-02-02 09:04:07 +08:00
2025-07-05 16:29:40 +08:00
2025-07-05 22:30:16 +08:00
2025-08-03 23:01:15 +08:00