From cd0031e8a53d34b2f76917e9040203c4a758d05a Mon Sep 17 00:00:00 2001 From: backslashxx <118538522+backslashxx@users.noreply.github.com> Date: Mon, 24 Feb 2025 00:53:17 +0800 Subject: [PATCH] kernel: expose variables used by manual hooks always --- kernel/ksud.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/kernel/ksud.c b/kernel/ksud.c index e969db84..217e0f84 100644 --- a/kernel/ksud.c +++ b/kernel/ksud.c @@ -58,11 +58,12 @@ static void stop_input_hook(); static struct work_struct stop_vfs_read_work; static struct work_struct stop_execve_hook_work; static struct work_struct stop_input_hook_work; -#else +#endif + bool ksu_vfs_read_hook __read_mostly = true; bool ksu_execveat_hook __read_mostly = true; bool ksu_input_hook __read_mostly = true; -#endif + u32 ksu_devpts_sid;