Added OpenAFS to type whitelist
authorNikolaus Rath <Nikolaus@rath.org>
Fri, 4 Jan 2019 13:33:01 +0000 (13:33 +0000)
committerNikolaus Rath <Nikolaus@rath.org>
Fri, 4 Jan 2019 13:34:34 +0000 (13:34 +0000)
Fixes: #336.
ChangeLog
util/fusermount.c

index 7faf386adc67540c2dfb9a25a3ee72b412535223..cc59e36e261563143af1f9e187dd87e94194ee65 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 Unreleased Changes
 ==================
+
+* Added OpenAFS to whitelist (so users can now mount FUSE filesystems
+  on mountpoints within OpenAFS filesystems).
 * Added a test of `seekdir` to test_syscalls.
 * Fixed `readdir` bug when non-zero offsets are given to filler and the
   filesystem client, after reading a whole directory, re-reads it from a
index 245aeeafa0b56fc967460a6cd3dcdca720b2f207..4b799d96b131778e9e3555d1e64c12ca79a4ba12 100644 (file)
@@ -1028,6 +1028,7 @@ static int check_perm(const char **mntp, struct stat *stbuf, int *mountpoint_fd)
         * the ecryptfs mount helper
         * (https://bazaar.launchpad.net/~ecryptfs/ecryptfs/trunk/view/head:/src/utils/mount.ecryptfs_private.c#L225). */
        typeof(fs_buf.f_type) f_type_whitelist[] = {
+               0x5346414f /* OPENAFS_SUPER_MAGIC */,
                0x61756673 /* AUFS_SUPER_MAGIC */,
                0x9123683E /* BTRFS_SUPER_MAGIC */,
                0x00C36400 /* CEPH_SUPER_MAGIC */,