From e7909ad6484899617dec9664a4b11e8af6b4174a Mon Sep 17 00:00:00 2001 From: Nikolaus Rath Date: Fri, 4 Jan 2019 13:33:01 +0000 Subject: [PATCH] Added OpenAFS to type whitelist Fixes: #336. --- ChangeLog.rst | 2 ++ util/fusermount.c | 1 + 2 files changed, 3 insertions(+) diff --git a/ChangeLog.rst b/ChangeLog.rst index e016f5f..f01de7f 100644 --- a/ChangeLog.rst +++ b/ChangeLog.rst @@ -2,6 +2,8 @@ Unreleased Changes ================== * Fixed a memory leak in `examples/passthrough_ll.c`. +* Added OpenAFS to whitelist (so users can now mount FUSE filesystems + on mountpoints within OpenAFS filesystems). libfuse 3.4.1 (2018-12-22) diff --git a/util/fusermount.c b/util/fusermount.c index 8eb0fdc..e6ac792 100644 --- a/util/fusermount.c +++ b/util/fusermount.c @@ -1010,6 +1010,7 @@ static int check_perm(const char **mntp, struct stat *stbuf, int *mountpoint_fd) * but got expanded as we found more filesystems that needed to be * overlayed. */ typeof(fs_buf.f_type) f_type_whitelist[] = { + 0x5346414f /* OPENAFS_SUPER_MAGIC */, 0x61756673 /* AUFS_SUPER_MAGIC */, 0x00000187 /* AUTOFS_SUPER_MAGIC */, 0xCA451A4E /* BCACHEFS_STATFS_MAGIC */, -- 2.30.2