Add RAMFS to fusermount permitted mount targets

Addresses issue https://github.com/libfuse/libfuse/issues/982
This commit is contained in:
Bernd Schubert 2024-07-14 14:33:18 +02:00
parent dae1184302
commit 54b7d9a318

View 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)