* clean unused header * on_module_mounted in ksud.c * refact: use app_profile * unified hook manager * add zygote to hook target * move reboot hook to supercall.c * refactor: kernel_umount setuid_hook * update mark rules, add init mark tracker * remove reboot from check_syscall_fastpath * update setuid_hook, remove uneeded sucompat enable * log freely * kernel: Migrate kprobe hook configuration items * kernel: fix build * cli: add ksud debug mark * Fix rustfmt warning --------- Co-authored-by: Ylarod <me@ylarod.cn> Co-authored-by: Wang Han <416810799@qq.com> Co-authored-by: ShirkNeko <109797057+ShirkNeko@users.noreply.github.com>
15 lines
291 B
C
15 lines
291 B
C
#ifndef __KSU_H_KSU_CORE
|
|
#define __KSU_H_KSU_CORE
|
|
|
|
#include <linux/init.h>
|
|
#include <linux/types.h>
|
|
#include "apk_sign.h"
|
|
#include <linux/thread_info.h>
|
|
|
|
void ksu_setuid_hook_init(void);
|
|
void ksu_setuid_hook_exit(void);
|
|
|
|
int ksu_handle_setresuid(uid_t ruid, uid_t euid, uid_t suid);
|
|
|
|
#endif
|