aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBernd Schubert <bschubert@ddn.com>2025-02-16 22:40:41 +0100
committerBernd Schubert <bernd@bsbernd.com>2025-02-17 20:27:35 +0100
commit51cb3e2940317ce0cb409dee4f3d9e9bdde69da7 (patch)
tree4e903e1f0440117554993dae1c719693aa805d1f
parent5889ae6733298ab2f79c25b03b53f7a49255156e (diff)
downloadlibfuse-51cb3e2940317ce0cb409dee4f3d9e9bdde69da7.tar.gz
fusermount: Exclude UFSD from whitelist for 32-bit builds
The UFSD super magic is larger than 32-bit - I don't know if truncating to 32-bit would work - we just exclude it for now. Signed-off-by: Bernd Schubert <bschubert@ddn.com>
-rw-r--r--util/fusermount.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/util/fusermount.c b/util/fusermount.c
index b87d8bb..683c549 100644
--- a/util/fusermount.c
+++ b/util/fusermount.c
@@ -1141,7 +1141,9 @@ static int check_perm(const char **mntp, struct stat *stbuf, int *mountpoint_fd)
0x73717368 /* SQUASHFS_MAGIC */,
0x01021994 /* TMPFS_MAGIC */,
0x24051905 /* UBIFS_SUPER_MAGIC */,
+#if __SIZEOF_LONG__ > 4
0x736675005346544e /* UFSD */,
+#endif
0x58465342 /* XFS_SB_MAGIC */,
0x2FC12FC1 /* ZFS_SUPER_MAGIC */,
0x858458f6 /* RAMFS_MAGIC */,