From d825b74dd44ee4f58f5eb45f468e3cc7c273dfb2 Mon Sep 17 00:00:00 2001 From: Steven Shiau Date: Fri, 6 Sep 2019 15:55:36 +0800 Subject: [PATCH] Use ntfs-3g instead of kernel module ntfs.ko. Use ntfs-3g instead of kernel module ntfs.ko to mount the file system. Since Linux kernel 4.19.37-1 from Debian has dropped the support of ntfs.ko: https://metadata.ftp-master.debian.org/changelogs//main/l/linux-signed-amd64/linux-signed-amd64_4.19.37+5_changelog "* ntfs: Disable NTFS_FS due to lack of upstream security support (CVE-2018-12929, CVE-2018-12930, CVE-2018-12931)" --- components/9990-misc-helpers.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/components/9990-misc-helpers.sh b/components/9990-misc-helpers.sh index 1b89e59..75338e0 100755 --- a/components/9990-misc-helpers.sh +++ b/components/9990-misc-helpers.sh @@ -472,6 +472,14 @@ is_supported_fs () fi # Try to look if it is already supported by the kernel + # For ntfs, since user space program ntfs-3g will be used. Check ntfs-3g instead of kernel module. + if [ "${fstype}" = "ntfs" ]; then + if type ntfs-3g >/dev/null 2>&1; then + return 0 + else + return 1 + fi + fi if grep -q ${fstype} /proc/filesystems then return 0 -- 2.1.4