kernel: Resolving the issue of unavailable functionality
This commit is contained in:
@@ -324,6 +324,7 @@ static void ksu_sys_enter_handler(void *data, struct pt_regs *regs, long id)
|
||||
|
||||
void ksu_syscall_hook_manager_init(void)
|
||||
{
|
||||
#if defined(CONFIG_KPROBES) && !defined(CONFIG_KSU_SUSFS)
|
||||
int ret;
|
||||
pr_info("hook_manager: ksu_hook_manager_init called\n");
|
||||
|
||||
@@ -344,6 +345,7 @@ void ksu_syscall_hook_manager_init(void)
|
||||
} else {
|
||||
pr_info("hook_manager: sys_enter tracepoint registered\n");
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
||||
ksu_setuid_hook_init();
|
||||
@@ -352,6 +354,7 @@ void ksu_syscall_hook_manager_init(void)
|
||||
|
||||
void ksu_syscall_hook_manager_exit(void)
|
||||
{
|
||||
#if defined(CONFIG_KPROBES) && !defined(CONFIG_KSU_SUSFS)
|
||||
pr_info("hook_manager: ksu_hook_manager_exit called\n");
|
||||
#ifdef CONFIG_HAVE_SYSCALL_TRACEPOINTS
|
||||
unregister_trace_sys_enter(ksu_sys_enter_handler, NULL);
|
||||
@@ -362,6 +365,7 @@ void ksu_syscall_hook_manager_exit(void)
|
||||
#ifdef CONFIG_KRETPROBES
|
||||
destroy_kretprobe(&syscall_regfunc_rp);
|
||||
destroy_kretprobe(&syscall_unregfunc_rp);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
ksu_sucompat_exit();
|
||||
|
||||
Reference in New Issue
Block a user