* This commit squashes new supercall impl:
3138651a38..562a3b9be7
Thanks to these people below:
Official KernelSU:
Co-authored-by: Wang Han <416810799@qq.com>
Co-authored-by: weishu <twsxtd@gmail.com>
Co-authored-by: Ylarod <me@ylarod.cn>
Co-authored-by: YuKongA <70465933+YuKongA@users.noreply.github.com>
xxKSU maintainer:
Co-authored-by: backslashxx <118538522+backslashxx@users.noreply.github.com>
MMRL maintainer:
Co-authored-by: Der_Googler <54764558+dergoogler@users.noreply.github.com>
KSUN maintainer:
Co-authored-by: Rifat Azad <33044977+rifsxd@users.noreply.github.com>
KOWSU maintainer:
Co-authored-by: KOWX712 <leecc0503@gmail.com>
27 lines
478 B
C
27 lines
478 B
C
#ifndef __KSU_H_SELINUX
|
|
#define __KSU_H_SELINUX
|
|
|
|
#include <linux/types.h>
|
|
#include <linux/version.h>
|
|
|
|
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 10, 0)) || \
|
|
defined(KSU_COMPAT_HAS_SELINUX_STATE)
|
|
#define KSU_COMPAT_USE_SELINUX_STATE
|
|
#endif
|
|
|
|
void setup_selinux(const char *);
|
|
|
|
void setenforce(bool);
|
|
|
|
bool getenforce(void);
|
|
|
|
bool is_ksu_domain(void);
|
|
|
|
bool is_zygote(void *cred);
|
|
|
|
void apply_kernelsu_rules(void);
|
|
|
|
u32 ksu_get_devpts_sid(void);
|
|
|
|
#endif
|