Add RAMFS to fusermount permitted mount targets
authorBernd Schubert <bernd.schubert@fastmail.fm>
Sun, 14 Jul 2024 12:33:18 +0000 (14:33 +0200)
committerBernd Schubert <bernd.schubert@fastmail.fm>
Sun, 14 Jul 2024 20:53:02 +0000 (22:53 +0200)
Addresses issue https://github.com/libfuse/libfuse/issues/982

util/fusermount.c

index a03176355110ae8c6e3dc5f295b7a7f41ea73ea3..5647af41a6fe3748ca26ac8c847d49d12d4331e4 100644 (file)
@@ -1139,6 +1139,7 @@ static int check_perm(const char **mntp, struct stat *stbuf, int *mountpoint_fd)
                0x736675005346544e /* UFSD */,
                0x58465342 /* XFS_SB_MAGIC */,
                0x2FC12FC1 /* ZFS_SUPER_MAGIC */,
+               0x858458f6 /* RAMFS_MAGIC */,
        };
        for (i = 0; i < sizeof(f_type_whitelist)/sizeof(f_type_whitelist[0]); i++) {
                if (f_type_whitelist[i] == fs_buf.f_type)