kernel: add_type for 5.4 is supported actually.

This commit is contained in:
weishu
2023-03-03 11:15:03 +07:00
parent 7846b2a440
commit 54d2962a0d

View File

@@ -7,10 +7,7 @@
#include "../klog.h" // IWYU pragma: keep #include "../klog.h" // IWYU pragma: keep
#include "ss/symtab.h" #include "ss/symtab.h"
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 10, 0) || LINUX_VERSION_CODE < KERNEL_VERSION(5, 4, 0)
// 5.4 is not tested
#define KSU_SUPPORT_ADD_TYPE #define KSU_SUPPORT_ADD_TYPE
#endif
////////////////////////////////////////////////////// //////////////////////////////////////////////////////
// Declaration // Declaration
@@ -985,4 +982,4 @@ bool ksu_genfscon(struct policydb *db, const char *fs_name, const char *path,
const char *ctx) const char *ctx)
{ {
return add_genfscon(db, fs_name, path, ctx); return add_genfscon(db, fs_name, path, ctx);
} }