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:
@@ -642,9 +642,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);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user