From 4502a52e1bf40baa1ee30c3abf89bba4fe287396 Mon Sep 17 00:00:00 2001 From: rsuntk Date: Thu, 19 Jun 2025 17:41:48 +0700 Subject: [PATCH] kernel: selinux: expose is_ksu_transition to all linux version * Allow newer kernel to use is_ksu_transition function. Signed-off-by: rsuntk --- kernel/selinux/selinux.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/kernel/selinux/selinux.c b/kernel/selinux/selinux.c index 3357f21b..5e1a7be6 100644 --- a/kernel/selinux/selinux.c +++ b/kernel/selinux/selinux.c @@ -48,7 +48,6 @@ static int transive_to_domain(const char *domain) return error; } -#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 14, 0) bool __maybe_unused is_ksu_transition(const struct task_security_struct *old_tsec, const struct task_security_struct *new_tsec) { @@ -67,7 +66,6 @@ bool __maybe_unused is_ksu_transition(const struct task_security_struct *old_tse security_release_secctx(secdata, seclen); return allowed; } -#endif void ksu_setup_selinux(const char *domain) {