Revert "kernel: sucompat: increase reliability, commonize and micro-optimize tiann #2656"

This reverts commit dd1eb98963.
This commit is contained in:
ShirkNeko
2025-09-28 19:36:36 +08:00
parent 7c4334e03a
commit 3a4775306e
5 changed files with 223 additions and 84 deletions

View File

@@ -123,6 +123,9 @@ ccflags-y += -DKSU_COMPAT_HAS_SELINUX_STATE
endif
# Handle optional backports
ifeq ($(shell grep -q "strncpy_from_user_nofault" $(srctree)/include/linux/uaccess.h; echo $$?),0)
ccflags-y += -DKSU_OPTIONAL_STRNCPY
endif
ifeq ($(shell grep -q "ssize_t kernel_read" $(srctree)/fs/read_write.c; echo $$?),0)
ccflags-y += -DKSU_OPTIONAL_KERNEL_READ
endif