* 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>
18 lines
580 B
C
18 lines
580 B
C
#ifndef __KSU_H_SUCOMPAT
|
|
#define __KSU_H_SUCOMPAT
|
|
#include <linux/types.h>
|
|
|
|
extern bool ksu_su_compat_enabled;
|
|
|
|
void ksu_sucompat_init(void);
|
|
void ksu_sucompat_exit(void);
|
|
|
|
// Handler functions exported for hook_manager
|
|
int ksu_handle_faccessat(int *dfd, const char __user **filename_user,
|
|
int *mode, int *__unused_flags);
|
|
int ksu_handle_stat(int *dfd, const char __user **filename_user, int *flags);
|
|
int ksu_handle_execve_sucompat(int *fd, const char __user **filename_user,
|
|
void *__never_use_argv, void *__never_use_envp,
|
|
int *__never_use_flags);
|
|
|
|
#endif |