kernel: selinux: expose is_ksu_transition to all linux version
* Allow newer kernel to use is_ksu_transition function. Signed-off-by: rsuntk <rsuntk@yukiprjkt.my.id>
This commit is contained in:
@@ -40,7 +40,6 @@ static int transive_to_domain(const char *domain)
|
|||||||
return error;
|
return error;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 14, 0)
|
|
||||||
bool __maybe_unused 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)
|
const struct task_security_struct *new_tsec)
|
||||||
{
|
{
|
||||||
@@ -59,7 +58,6 @@ bool __maybe_unused is_ksu_transition(const struct task_security_struct *old_tse
|
|||||||
security_release_secctx(secdata, seclen);
|
security_release_secctx(secdata, seclen);
|
||||||
return allowed;
|
return allowed;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
void setup_selinux(const char *domain)
|
void setup_selinux(const char *domain)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user