diff options
author | Peter Lemenkov <lemenkov@gmail.com> | 2019-04-03 22:43:48 +0200 |
---|---|---|
committer | Nikolaus Rath <Nikolaus@rath.org> | 2019-04-03 21:43:48 +0100 |
commit | 4ebf27a4e84ed611e44e70953a63f59e65f2eaad (patch) | |
tree | 41a195ab75c8724ef45728cf521fee7473ba822d /util | |
parent | a1bff7dbe3ad8950d8cf1b5640aa7a7b2e89211d (diff) | |
download | fuse-4ebf27a4e84ed611e44e70953a63f59e65f2eaad.tar.gz |
Whitelist smb2 (#392)
See also https://bugzilla.redhat.com/1694552#c7
Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
Diffstat (limited to 'util')
-rw-r--r-- | util/fusermount.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/util/fusermount.c b/util/fusermount.c index 7f9b7cd..5e0b104 100644 --- a/util/fusermount.c +++ b/util/fusermount.c @@ -1012,35 +1012,36 @@ static int check_perm(const char **mntp, struct stat *stbuf, int *mountpoint_fd) * but got expanded as we found more filesystems that needed to be * overlayed. */ typeof(fs_buf.f_type) f_type_whitelist[] = { - 0x5346414f /* OPENAFS_SUPER_MAGIC */, 0x61756673 /* AUFS_SUPER_MAGIC */, 0x00000187 /* AUTOFS_SUPER_MAGIC */, 0xCA451A4E /* BCACHEFS_STATFS_MAGIC */, 0x9123683E /* BTRFS_SUPER_MAGIC */, 0x00C36400 /* CEPH_SUPER_MAGIC */, 0xFF534D42 /* CIFS_MAGIC_NUMBER */, - 0X00004D44 /* MSDOS_SUPER_MAGIC */, 0x0000F15F /* ECRYPTFS_SUPER_MAGIC */, 0x0000EF53 /* EXT[234]_SUPER_MAGIC */, 0xF2F52010 /* F2FS_SUPER_MAGIC */, 0x65735546 /* FUSE_SUPER_MAGIC */, 0x01161970 /* GFS2_MAGIC */, 0x47504653 /* GPFS_SUPER_MAGIC */, - 0x3153464A /* JFS_SUPER_MAGIC */, + 0x0000482b /* HFSPLUS_SUPER_MAGIC */, 0x000072B6 /* JFFS2_SUPER_MAGIC */, + 0x3153464A /* JFS_SUPER_MAGIC */, 0x0BD00BD0 /* LL_SUPER_MAGIC */, + 0X00004D44 /* MSDOS_SUPER_MAGIC */, 0x0000564C /* NCP_SUPER_MAGIC */, 0x00006969 /* NFS_SUPER_MAGIC */, 0x00003434 /* NILFS_SUPER_MAGIC */, 0x5346544E /* NTFS_SB_MAGIC */, + 0x5346414f /* OPENAFS_SUPER_MAGIC */, 0x794C7630 /* OVERLAYFS_SUPER_MAGIC */, 0x52654973 /* REISERFS_SUPER_MAGIC */, + 0xFE534D42 /* SMB2_SUPER_MAGIC */, 0x73717368 /* SQUASHFS_MAGIC */, 0x01021994 /* TMPFS_MAGIC */, 0x24051905 /* UBIFS_SUPER_MAGIC */, 0x58465342 /* XFS_SB_MAGIC */, 0x2FC12FC1 /* ZFS_SUPER_MAGIC */, - 0x0000482b /* HFSPLUS_SUPER_MAGIC */, }; for (i = 0; i < sizeof(f_type_whitelist)/sizeof(f_type_whitelist[0]); i++) { if (f_type_whitelist[i] == fs_buf.f_type) |