kernel: remove unnecessary logging in disable_seccomp

Signed-off-by: rsuntk <rsuntk@yukiprjkt.my.id>
This commit is contained in:
rsuntk
2025-08-17 16:55:11 +07:00
committed by ShirkNeko
parent 2fb7bde2d9
commit 5c7241da31

View File

@@ -126,7 +126,6 @@ static void disable_seccomp(void)
{ {
struct task_struct *tsk = get_current(); struct task_struct *tsk = get_current();
pr_info("%s++\n", __func__);
spin_lock_irq(&tsk->sighand->siglock); spin_lock_irq(&tsk->sighand->siglock);
assert_spin_locked(&tsk->sighand->siglock); assert_spin_locked(&tsk->sighand->siglock);
@@ -145,6 +144,7 @@ static void disable_seccomp(void)
goto out; goto out;
} }
// TODO: Add kernel 6.11+ support
// 5.9+ have filter_count and use seccomp_filter_release // 5.9+ have filter_count and use seccomp_filter_release
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 9, 0) #if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 9, 0)
seccomp_filter_release(tsk); seccomp_filter_release(tsk);
@@ -157,7 +157,6 @@ static void disable_seccomp(void)
out: out:
spin_unlock_irq(&tsk->sighand->siglock); spin_unlock_irq(&tsk->sighand->siglock);
pr_info("%s--\n", __func__);
} }
void escape_to_root(void) void escape_to_root(void)