fix build

This commit is contained in:
ShirkNeko
2025-11-09 14:14:51 +08:00
parent 163531fcd2
commit 05ed1a3714
4 changed files with 5 additions and 2 deletions

View File

@@ -62,7 +62,7 @@ static void setup_groups(struct root_profile *profile, struct cred *cred)
put_group_info(group_info); put_group_info(group_info);
} }
static void disable_seccomp() void disable_seccomp(void)
{ {
assert_spin_locked(&current->sighand->siglock); assert_spin_locked(&current->sighand->siglock);
// disable seccomp // disable seccomp

View File

@@ -65,4 +65,6 @@ void escape_with_root_profile(void);
void escape_to_root_for_cmd_su(uid_t target_uid, pid_t target_pid); void escape_to_root_for_cmd_su(uid_t target_uid, pid_t target_pid);
void disable_seccomp(void);
#endif #endif

View File

@@ -41,6 +41,7 @@
#include "supercalls.h" #include "supercalls.h"
#include "syscall_hook_manager.h" #include "syscall_hook_manager.h"
#include "kernel_umount.h" #include "kernel_umount.h"
#include "app_profile.h"
#include "sulog.h" #include "sulog.h"

View File

@@ -399,7 +399,7 @@ void ksu_syscall_hook_manager_init(void)
#ifdef CONFIG_HAVE_SYSCALL_TRACEPOINTS #ifdef CONFIG_HAVE_SYSCALL_TRACEPOINTS
ret = register_trace_sys_enter(ksu_sys_enter_handler, NULL); ret = register_trace_sys_enter(ksu_sys_enter_handler, NULL);
#ifndef CONFIG_KRETPROBES #ifndef CONFIG_KRETPROBES
unmark_all_process(); ksu_unmark_all_process();
ksu_mark_running_process(); ksu_mark_running_process();
#endif #endif
if (ret) { if (ret) {