* use sys_enter tracepoint for sucompat * update sucompat rules * clean tif mark * mark tif after load allow list * clear all tif first, then mark target * Fix shell su * allow when escape * fix bugs * kernel: Resolve logical inconsistencies --------- Co-authored-by: Ylarod <me@ylarod.cn> Co-authored-by: weishu <twsxtd@gmail.com>
25 lines
386 B
C
25 lines
386 B
C
#ifndef __KSU_H_SELINUX
|
|
#define __KSU_H_SELINUX
|
|
|
|
#include "linux/types.h"
|
|
#include "linux/version.h"
|
|
#include "linux/sched.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_devpts_sid();
|
|
|
|
#endif
|