diff options
author | Bernd Schubert <bernd.schubert@fastmail.fm> | 2024-07-14 14:33:18 +0200 |
---|---|---|
committer | Bernd Schubert <bernd.schubert@fastmail.fm> | 2024-07-14 22:53:02 +0200 |
commit | 54b7d9a3188c76fd0ef50d2dde68531334506563 (patch) | |
tree | 1773c701d4593348ed8d47ab3e6db320beef2d41 | |
parent | dae1184302834b52cff438fbf5322cd1c9c79c06 (diff) | |
download | libfuse-54b7d9a3188c76fd0ef50d2dde68531334506563.tar.gz |
Add RAMFS to fusermount permitted mount targets
Addresses issue https://github.com/libfuse/libfuse/issues/982
-rw-r--r-- | util/fusermount.c | 1 |
1 files changed, 1 insertions, 0 deletions
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) |