diff --git a/kernel/Kconfig b/kernel/Kconfig index ccdc9383..a50a38d6 100644 --- a/kernel/Kconfig +++ b/kernel/Kconfig @@ -17,11 +17,12 @@ config KSU_DEBUG Enable KernelSU debug mode. config KPM - bool "Enable KernelSU KPM" + bool "Enable SukiSU KPM" default n help - This option enables the KernelSU KPM feature. If enabled, it will - override the kernel version check and enable the hook functionality. + Enabling this option will activate the KPM feature of SukiSU. + This option is suitable for scenarios where you need to force KPM to be enabled. + but it may affect system stability. config KSU_ALLOWLIST_WORKAROUND bool "KernelSU Session Keyring Init workaround" diff --git a/kernel/Makefile b/kernel/Makefile index 1e5883ff..a10c2da0 100644 --- a/kernel/Makefile +++ b/kernel/Makefile @@ -16,6 +16,12 @@ ccflags-y += -I$(objtree)/security/selinux -include $(srctree)/include/uapi/asm- obj-$(CONFIG_KPM) += kpm/ +ifeq ($(CONFIG_KPM),y) +$(info -- KPM is enabled) +else +$(info -- KPM is disabled) +endif + # Do checks before compile ifneq ($(shell grep -q "int path_umount" $(srctree)/fs/namespace.c; echo $$?),0) $(error -- Backporting path_umount is mandatory !! Read: https://kernelsu.org/guide/how-to-integrate-for-non-gki.html#how-to-backport-path-umount) @@ -122,7 +128,7 @@ endif $(info -- KernelSU Manager signature size: $(KSU_EXPECTED_SIZE)) $(info -- KernelSU Manager signature hash: $(KSU_EXPECTED_HASH)) -$(info -- Supported Unofficial Manager: 5ec1cff (GKI) rsuntk (Non-GKI) ShirkNeko (GKI and non-GKI)) +$(info -- Supported Unofficial Manager: 5ec1cff (GKI) rsuntk (Non-GKI) ShirkNeko udochina (GKI and non-GKI and KPM)) KERNEL_VERSION := $(VERSION).$(PATCHLEVEL) $(info -- KERNEL_VERSION: $(KERNEL_VERSION))