kernel: improve get_cred_rcu guard

Signed-off-by: rsuntk <rissu.ntk@gmail.com>
This commit is contained in:
rsuntk
2025-01-10 13:26:12 +07:00
committed by Rifat Azad
parent 3b045f6c16
commit 0ada4ee5d4
2 changed files with 6 additions and 2 deletions

View File

@@ -45,6 +45,10 @@
#include "throne_tracker.h"
#include "kernel_compat.h"
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 0, 0) || defined(KSU_COMPAT_GET_CRED_RCU)
#define KSU_GET_CRED_RCU
#endif
static bool ksu_module_mounted = false;
extern int handle_sepolicy(unsigned long arg3, void __user *arg4);