kernel: mark is_ksu_transition as maybe_unused

* Probably this hook is not needed much

Signed-off-by: rsuntk <rsuntk@yukiprjkt.my.id>
This commit is contained in:
rsuntk
2025-06-08 07:19:43 +07:00
committed by ShirkNeko
parent 1d1e0f1e7f
commit 43590fc350

View File

@@ -637,7 +637,7 @@ __maybe_unused int ksu_handle_execve_ksud(const char __user *filename_user,
#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 14, 0)
#include "objsec.h" // task_security_struct
bool is_ksu_transition(const struct task_security_struct *old_tsec,
bool __maybe_unused is_ksu_transition(const struct task_security_struct *old_tsec,
const struct task_security_struct *new_tsec)
{
static u32 ksu_sid;