kernel: move some defs to single file
* Much cleaner code, although setenforce is not used anymore * Guard is_ksu_transition only for 4.19 and under. Signed-off-by: rsuntk <rsuntk@yukiprjkt.my.id>
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
#ifndef __KSU_H_SELINUX
|
||||
#define __KSU_H_SELINUX
|
||||
|
||||
#include "linux/types.h"
|
||||
#include "linux/version.h"
|
||||
#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
|
||||
@@ -12,7 +12,7 @@ void ksu_setup_selinux(const char *);
|
||||
|
||||
void ksu_setenforce(bool);
|
||||
|
||||
bool ksu_getenforce();
|
||||
bool ksu_getenforce(void);
|
||||
|
||||
bool ksu_is_ksu_domain();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user