From 4301d1dc5db8849649f1d3fdec3ccee056c3046c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?YC=E9=85=B1luyancib?= Date: Sun, 30 Nov 2025 10:21:58 +0800 Subject: [PATCH] kernel(lsm_hooks):fix misding __init (#641) --- kernel/lsm_hooks.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/lsm_hooks.c b/kernel/lsm_hooks.c index 4aff7516..c2ef3b4a 100644 --- a/kernel/lsm_hooks.c +++ b/kernel/lsm_hooks.c @@ -103,7 +103,7 @@ static const struct lsm_id ksu_lsmid = { }; #endif -void ksu_lsm_hook_init(void) +void __init ksu_lsm_hook_init(void) { #if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 8, 0) security_add_hooks(ksu_hooks, ARRAY_SIZE(ksu_hooks), &ksu_lsmid);