* Cherry-picked range: (kernel)
ebea31daa8..6915b62b9a
* Also merged unmerged pr:
https://github.com/tiann/KernelSU/pull/ 2909
Co-authored-by: Ylarod <me@ylarod.cn>
Co-authored-by: 5ec1cff <56485584+5ec1cff@users.noreply.github.com>
Co-authored-by: backslashxx <118538522+backslashxx@users.noreply.github.com>
Co-authored-by: u9521 <63995396+u9521@users.noreply.github.com>
Co-authored-by: Wang Han <416810799@qq.com>
25 lines
474 B
C
25 lines
474 B
C
#ifndef __KSU_H_KSUD
|
|
#define __KSU_H_KSUD
|
|
|
|
#include <linux/types.h>
|
|
|
|
#define KSUD_PATH "/data/adb/ksud"
|
|
|
|
void ksu_ksud_init(void);
|
|
void ksu_ksud_exit(void);
|
|
|
|
void on_post_fs_data(void);
|
|
void on_module_mounted(void);
|
|
void on_boot_completed(void);
|
|
|
|
bool ksu_is_safe_mode(void);
|
|
|
|
extern u32 ksu_file_sid;
|
|
extern bool ksu_module_mounted;
|
|
extern bool ksu_boot_completed;
|
|
|
|
extern bool ksu_execveat_hook __read_mostly;
|
|
extern int ksu_handle_pre_ksud(const char *filename);
|
|
|
|
#endif
|