sukisu/kernel/selinux/selinux.h

29 lines
488 B
C
Raw Normal View History

2025-11-20 21:18:19 +01:00
#ifndef __KSU_H_SELINUX
#define __KSU_H_SELINUX
#include "linux/types.h"
#include "linux/version.h"
2025-11-20 21:24:53 +01:00
#include "linux/cred.h"
2025-11-20 21:18:19 +01:00
void setup_selinux(const char *);
void setenforce(bool);
bool getenforce();
2025-11-20 21:24:53 +01:00
bool is_task_ksu_domain(const struct cred* cred);
2025-11-20 21:18:19 +01:00
bool is_ksu_domain();
2025-11-20 21:24:53 +01:00
bool is_zygote(const struct cred* cred);
bool is_init(const struct cred* cred);
2025-11-20 21:18:19 +01:00
void apply_kernelsu_rules();
2025-11-20 21:24:53 +01:00
u32 ksu_get_ksu_file_sid();
int handle_sepolicy(unsigned long arg3, void __user *arg4);
2025-11-20 21:18:19 +01:00
#endif