Skip to content

Commit 0eab5ae

Browse files
committed
kernel: make path_umount backporting as optional
Since backslashxx@4f8943a, path_umount is no longer needed. Signed-off-by: rsuntk <rsuntk@yukiprjkt.my.id>
1 parent 9e220f6 commit 0eab5ae

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

kernel/Makefile

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,7 @@ endif
3131

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

4037
# Checks hooks state

kernel/core_hook.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ void escape_to_root(void)
180180
sizeof(cred->cap_bset));
181181

182182
setup_groups(profile, cred);
183-
183+
184184
rcu_read_unlock();
185185

186186
// Refer to kernel/seccomp.c: seccomp_set_mode_strict

0 commit comments

Comments
 (0)