* 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>
27 lines
448 B
C
27 lines
448 B
C
#ifndef __KSU_H_SELINUX
|
|
#define __KSU_H_SELINUX
|
|
|
|
#include "linux/types.h"
|
|
#include "linux/version.h"
|
|
#include "linux/cred.h"
|
|
|
|
void setup_selinux(const char *);
|
|
|
|
void setenforce(bool);
|
|
|
|
bool getenforce();
|
|
|
|
bool is_task_ksu_domain(const struct cred* cred);
|
|
|
|
bool is_ksu_domain();
|
|
|
|
bool is_zygote(const struct cred* cred);
|
|
|
|
void apply_kernelsu_rules();
|
|
|
|
u32 ksu_get_ksu_file_sid();
|
|
|
|
int handle_sepolicy(unsigned long arg3, void __user *arg4);
|
|
|
|
#endif
|