kernel: check CONFIG_SECCOMP status (#351)
This commit is contained in:
@@ -76,8 +76,12 @@ void escape_to_root(void)
|
|||||||
#else
|
#else
|
||||||
current_thread_info()->flags &= ~(TIF_SECCOMP | _TIF_SECCOMP);
|
current_thread_info()->flags &= ~(TIF_SECCOMP | _TIF_SECCOMP);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef CONFIG_SECCOMP
|
||||||
current->seccomp.mode = 0;
|
current->seccomp.mode = 0;
|
||||||
current->seccomp.filter = NULL;
|
current->seccomp.filter = NULL;
|
||||||
|
#else
|
||||||
|
#endif
|
||||||
|
|
||||||
// setgroup to root
|
// setgroup to root
|
||||||
if (cred->group_info)
|
if (cred->group_info)
|
||||||
@@ -545,4 +549,4 @@ void ksu_core_exit(void)
|
|||||||
pr_info("ksu_kprobe_exit\n");
|
pr_info("ksu_kprobe_exit\n");
|
||||||
ksu_kprobe_exit();
|
ksu_kprobe_exit();
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user