kernel: remove unnecessary logging in disable_seccomp
Signed-off-by: rsuntk <rsuntk@yukiprjkt.my.id>
This commit is contained in:
@@ -126,7 +126,6 @@ static void disable_seccomp(void)
|
||||
{
|
||||
struct task_struct *tsk = get_current();
|
||||
|
||||
pr_info("%s++\n", __func__);
|
||||
spin_lock_irq(&tsk->sighand->siglock);
|
||||
assert_spin_locked(&tsk->sighand->siglock);
|
||||
|
||||
@@ -145,6 +144,7 @@ static void disable_seccomp(void)
|
||||
goto out;
|
||||
}
|
||||
|
||||
// TODO: Add kernel 6.11+ support
|
||||
// 5.9+ have filter_count and use seccomp_filter_release
|
||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 9, 0)
|
||||
seccomp_filter_release(tsk);
|
||||
@@ -157,7 +157,6 @@ static void disable_seccomp(void)
|
||||
|
||||
out:
|
||||
spin_unlock_irq(&tsk->sighand->siglock);
|
||||
pr_info("%s--\n", __func__);
|
||||
}
|
||||
|
||||
void escape_to_root(void)
|
||||
@@ -207,7 +206,7 @@ void escape_to_root(void)
|
||||
|
||||
setup_groups(profile, newcreds);
|
||||
commit_creds(newcreds);
|
||||
|
||||
|
||||
disable_seccomp();
|
||||
setup_selinux(profile->selinux_domain);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user