From bcc7a395905546a45f75783e2321a003126bb0cb Mon Sep 17 00:00:00 2001 From: Robo Shimmer Date: Tue, 31 Jul 2018 16:20:56 +0200 Subject: [PATCH] [PATCH] Add autofs to mountpoint file system whitelist Gbp-Pq: Name 0007-Add_autofs_to_mountpoint_file_system_whitelist.patch --- ChangeLog | 1 + util/fusermount.c | 1 + 2 files changed, 2 insertions(+) diff --git a/ChangeLog b/ChangeLog index 13a369f..52a4573 100644 --- a/ChangeLog +++ b/ChangeLog @@ -7,6 +7,7 @@ FUSE 2.9.9 (2019-01-04) * 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 non-zero offset e. g. by calling `seekdir` followed by `readdir`. +* Allow fuse to be mounted into autofs folder hierarchy. FUSE 2.9.8 (2018-07-24) ======================= diff --git a/util/fusermount.c b/util/fusermount.c index 4b799d9..c141e25 100644 --- a/util/fusermount.c +++ b/util/fusermount.c @@ -1051,6 +1051,7 @@ static int check_perm(const char **mntp, struct stat *stbuf, int *mountpoint_fd) 0x24051905 /* UBIFS_SUPER_MAGIC */, 0x58465342 /* XFS_SB_MAGIC */, 0x2FC12FC1 /* ZFS_SUPER_MAGIC */, + 0x00000187 /* AUTOFS */, }; for (i = 0; i < sizeof(f_type_whitelist)/sizeof(f_type_whitelist[0]); i++) { if (f_type_whitelist[i] == fs_buf.f_type)