From 54b7d9a3188c76fd0ef50d2dde68531334506563 Mon Sep 17 00:00:00 2001 From: Bernd Schubert Date: Sun, 14 Jul 2024 14:33:18 +0200 Subject: [PATCH] Add RAMFS to fusermount permitted mount targets Addresses issue https://github.com/libfuse/libfuse/issues/982 --- util/fusermount.c | 1 + 1 file changed, 1 insertion(+) diff --git a/util/fusermount.c b/util/fusermount.c index a031763..5647af4 100644 --- a/util/fusermount.c +++ b/util/fusermount.c @@ -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)