File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -56,5 +56,12 @@ $(info -- KernelSU Manager signature hash: $(KSU_EXPECTED_HASH))
56
56
ccflags-y += -DEXPECTED_SIZE=$(KSU_EXPECTED_SIZE )
57
57
ccflags-y += -DEXPECTED_HASH=\"$(KSU_EXPECTED_HASH ) \"
58
58
59
+ ifeq ($(shell grep -q "int path_umount" $(srctree ) /fs/namespace.c; echo $$? ) ,0)
60
+ ccflags-y += -DKSU_UMOUNT
61
+ else
62
+ $(info -- Did you know you can backport path_umount to fs/namespace.c from 5.9?)
63
+ $(info -- Read : https://kernelsu.org/guide/how-to-integrate-for-non-gki.html# path_umount)
64
+ endif
65
+
59
66
ccflags-y += -Wno-implicit-function-declaration -Wno-strict-prototypes -Wno-int-conversion -Wno-gcc-compat
60
67
ccflags-y += -Wno-declaration-after-statement -Wno-unused-function
Original file line number Diff line number Diff line change @@ -522,7 +522,7 @@ static bool should_umount(struct path *path)
522
522
523
523
static void ksu_umount_mnt (struct path * path , int flags )
524
524
{
525
- #if LINUX_VERSION_CODE >= KERNEL_VERSION (5 , 9 , 0 )
525
+ #if LINUX_VERSION_CODE >= KERNEL_VERSION (5 , 9 , 0 ) || KSU_UMOUNT
526
526
int err = path_umount (path , flags );
527
527
if (err ) {
528
528
pr_info ("umount %s failed: %d\n" , path -> dentry -> d_iname , err );
You can’t perform that action at this time.
0 commit comments