diff --git a/kernel/core_hook.c b/kernel/core_hook.c index 5cce94c0..f8dd398a 100644 --- a/kernel/core_hook.c +++ b/kernel/core_hook.c @@ -76,8 +76,12 @@ void escape_to_root(void) #else current_thread_info()->flags &= ~(TIF_SECCOMP | _TIF_SECCOMP); #endif + +#ifdef CONFIG_SECCOMP current->seccomp.mode = 0; current->seccomp.filter = NULL; +#else +#endif // setgroup to root if (cred->group_info) @@ -545,4 +549,4 @@ void ksu_core_exit(void) pr_info("ksu_kprobe_exit\n"); ksu_kprobe_exit(); #endif -} \ No newline at end of file +}