diff --git a/kernel/core_hook.c b/kernel/core_hook.c index ba528a77..97e3e560 100644 --- a/kernel/core_hook.c +++ b/kernel/core_hook.c @@ -993,7 +993,11 @@ static int ksu_sys_umount(const char *mnt, int flags) mm_segment_t old_fs = get_fs(); set_fs(KERNEL_DS); +#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 17, 0) + int ret = ksys_umount(usermnt, flags); +#else long ret = sys_umount(usermnt, flags); // cuz asmlinkage long sys##name +#endif set_fs(old_fs); pr_info("%s: path: %s code: %d \n", __func__, usermnt, ret); }