kernel: make path_umount backporting as optional

Since https://github.com/backslashxx/KernelSU/commit/4f8943a, path_umount is no longer needed.

Signed-off-by: rsuntk <rsuntk@yukiprjkt.my.id>
This commit is contained in:
rsuntk
2025-05-24 10:35:26 +07:00
committed by ShirkNeko
parent d9f54a8e42
commit 98d25694dc
2 changed files with 2 additions and 5 deletions

View File

@@ -34,10 +34,7 @@ endif
# Do checks before compile # Do checks before compile
ifeq ($(shell grep -q "int\s\+\path_umount" $(srctree)/fs/namespace.c; echo $$?),0) ifeq ($(shell grep -q "int\s\+\path_umount" $(srctree)/fs/namespace.c; echo $$?),0)
$(info -- KernelSU: checks ok. Found path_umount) ccflags-y += -DKSU_HAS_PATH_UMOUNT
else
$(info -- KernelSU: checks failed, abort.)
$(error -- Backporting path_umount is mandatory !! Read: https://kernelsu.org/guide/how-to-integrate-for-non-gki.html#how-to-backport-path-umount)
endif endif
# Checks hooks state # Checks hooks state

View File

@@ -184,7 +184,7 @@ void escape_to_root(void)
sizeof(cred->cap_bset)); sizeof(cred->cap_bset));
setup_groups(profile, cred); setup_groups(profile, cred);
rcu_read_unlock(); rcu_read_unlock();
// Refer to kernel/seccomp.c: seccomp_set_mode_strict // Refer to kernel/seccomp.c: seccomp_set_mode_strict