Blame SOURCES/fuse2-0004-Whitelist-SMB2-found-on-some-NAS-devices.patch

25247e
From: Peter Lemenkov <lemenkov@gmail.com>
25247e
Date: Wed, 3 Apr 2019 12:23:56 +0300
25247e
Subject: [PATCH] Whitelist SMB2 found on some NAS devices
25247e
25247e
* https://bugzilla.redhat.com/1694552#c7
25247e
25247e
Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
25247e
25247e
diff --git a/util/fusermount.c b/util/fusermount.c
25247e
index 4b799d9..ef9d1ed 100644
25247e
--- a/util/fusermount.c
25247e
+++ b/util/fusermount.c
25247e
@@ -1046,6 +1046,7 @@ static int check_perm(const char **mntp, struct stat *stbuf, int *mountpoint_fd)
25247e
 		0x5346544E /* NTFS_SB_MAGIC */,
25247e
 		0x794C7630 /* OVERLAYFS_SUPER_MAGIC */,
25247e
 		0x52654973 /* REISERFS_SUPER_MAGIC */,
25247e
+		0xFE534D42 /* SMB2_SUPER_MAGIC */,
25247e
 		0x73717368 /* SQUASHFS_MAGIC */,
25247e
 		0x01021994 /* TMPFS_MAGIC */,
25247e
 		0x24051905 /* UBIFS_SUPER_MAGIC */,