Add NTFS3 kernel driver fs to the whitelist of mount targets (#830)
authormrdvdrm <mrdvdrm@gmail.com>
Fri, 25 Aug 2023 17:03:54 +0000 (19:03 +0200)
committerGitHub <noreply@github.com>
Fri, 25 Aug 2023 17:03:54 +0000 (18:03 +0100)
With Linux Kernel 5.15 new ntfs kernel driver NTFS3 was included. It must be whitelisted as a permitted mount target.

util/fusermount.c

index 57bf3edab739e676b18f2c512caccb95406d8b01..a2dd8e1202cb7e1b142eeba2a1adc6757090f0ed 100644 (file)
@@ -1058,6 +1058,7 @@ static int check_perm(const char **mntp, struct stat *stbuf, int *mountpoint_fd)
                0x00006969 /* NFS_SUPER_MAGIC */,
                0x00003434 /* NILFS_SUPER_MAGIC */,
                0x5346544E /* NTFS_SB_MAGIC */,
+               0x7366746E /* NTFS3_SUPER_MAGIC */,
                0x5346414f /* OPENAFS_SUPER_MAGIC */,
                0x794C7630 /* OVERLAYFS_SUPER_MAGIC */,
                0x52654973 /* REISERFS_SUPER_MAGIC */,