更新 KPM 配置,修改为 SukiSU KPM,并添加启用状态信息

This commit is contained in:
ShirkNeko
2025-03-31 19:40:16 +08:00
parent cdf5e7b869
commit 2fc0935f58
2 changed files with 11 additions and 4 deletions

View File

@@ -17,11 +17,12 @@ config KSU_DEBUG
Enable KernelSU debug mode. Enable KernelSU debug mode.
config KPM config KPM
bool "Enable KernelSU KPM" bool "Enable SukiSU KPM"
default n default n
help help
This option enables the KernelSU KPM feature. If enabled, it will Enabling this option will activate the KPM feature of SukiSU.
override the kernel version check and enable the hook functionality. 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 config KSU_ALLOWLIST_WORKAROUND
bool "KernelSU Session Keyring Init workaround" bool "KernelSU Session Keyring Init workaround"

View File

@@ -16,6 +16,12 @@ ccflags-y += -I$(objtree)/security/selinux -include $(srctree)/include/uapi/asm-
obj-$(CONFIG_KPM) += kpm/ obj-$(CONFIG_KPM) += kpm/
ifeq ($(CONFIG_KPM),y)
$(info -- KPM is enabled)
else
$(info -- KPM is disabled)
endif
# Do checks before compile # Do checks before compile
ifneq ($(shell grep -q "int path_umount" $(srctree)/fs/namespace.c; echo $$?),0) 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) $(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 size: $(KSU_EXPECTED_SIZE))
$(info -- KernelSU Manager signature hash: $(KSU_EXPECTED_HASH)) $(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) KERNEL_VERSION := $(VERSION).$(PATCHLEVEL)
$(info -- KERNEL_VERSION: $(KERNEL_VERSION)) $(info -- KERNEL_VERSION: $(KERNEL_VERSION))