kernel: Remove ksu_execveat_hook from is_ksu_transition

* Doesn't work well

Ref: c40e3512b5

Reported-by: edenadversary <143865198+edenadversary@users.noreply.github.com>
This commit is contained in:
rsuntk
2025-06-11 14:00:03 +07:00
committed by ShirkNeko
parent 430a3504d4
commit 02629db24b

View File

@@ -645,9 +645,6 @@ bool __maybe_unused is_ksu_transition(const struct task_security_struct *old_tse
u32 seclen; u32 seclen;
bool allowed = false; bool allowed = false;
if (!ksu_execveat_hook) // not needed anymore once ksud ran
return false;
if (!ksu_sid) if (!ksu_sid)
security_secctx_to_secid("u:r:su:s0", strlen("u:r:su:s0"), &ksu_sid); security_secctx_to_secid("u:r:su:s0", strlen("u:r:su:s0"), &ksu_sid);