We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a005e0 commit 227ad17Copy full SHA for 227ad17
kernel/core_hook.c
@@ -524,7 +524,11 @@ static void ksu_sys_umount(const char *mnt, int flags)
524
525
mm_segment_t old_fs = get_fs();
526
set_fs(KERNEL_DS);
527
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 17, 0)
528
+ int ret = ksys_umount(usermnt, flags);
529
+#else
530
long ret = sys_umount(usermnt, flags); // cuz asmlinkage long sys##name
531
+#endif
532
set_fs(old_fs);
533
pr_info("%s: path: %s code: %d \n", __func__, mnt, ret);
534
}
0 commit comments