27 lines
449 B
C
27 lines
449 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_ksu_file_sid();
|
|
|
|
int handle_sepolicy(unsigned long arg3, void __user *arg4);
|
|
|
|
#endif
|