From: Eric W. Biederman Date: Tue, 29 May 2018 14:04:46 +0000 (-0500) Subject: fuse: Allow fully unprivileged mounts X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=4ad769f3c346ec3d458e255548dec26ca5284cf6;p=linux.git fuse: Allow fully unprivileged mounts Now that the fuse and the vfs work is complete. Allow the fuse filesystem to be mounted by the root user in a user namespace. Signed-off-by: "Eric W. Biederman" Signed-off-by: Miklos Szeredi --- diff --git a/fs/fuse/inode.c b/fs/fuse/inode.c index 22c76cf8c2e39..48baa26993f3e 100644 --- a/fs/fuse/inode.c +++ b/fs/fuse/inode.c @@ -1222,7 +1222,7 @@ static void fuse_kill_sb_anon(struct super_block *sb) static struct file_system_type fuse_fs_type = { .owner = THIS_MODULE, .name = "fuse", - .fs_flags = FS_HAS_SUBTYPE, + .fs_flags = FS_HAS_SUBTYPE | FS_USERNS_MOUNT, .mount = fuse_mount, .kill_sb = fuse_kill_sb_anon, };