summaryrefslogtreecommitdiffstats
path: root/fs/fuse/fuse_i.h
diff options
context:
space:
mode:
authorEric W. Biederman2018-05-04 18:47:28 +0200
committerMiklos Szeredi2018-05-31 12:26:10 +0200
commite45b2546e23c2d10f8585063a15c745a7603fac9 (patch)
tree6203c459f681766f6e073d3a3ffbf9766e77ec91 /fs/fuse/fuse_i.h
parentfuse: add writeback documentation (diff)
downloadkernel-qcow2-linux-e45b2546e23c2d10f8585063a15c745a7603fac9.tar.gz
kernel-qcow2-linux-e45b2546e23c2d10f8585063a15c745a7603fac9.tar.xz
kernel-qcow2-linux-e45b2546e23c2d10f8585063a15c745a7603fac9.zip
fuse: Ensure posix acls are translated outside of init_user_ns
Ensure the translation happens by failing to read or write posix acls when the filesystem has not indicated it supports posix acls. This ensures that modern cached posix acl support is available and used when dealing with posix acls. This is important because only that path has the code to convernt the uids and gids in posix acls into the user namespace of a fuse filesystem. Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com> Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'fs/fuse/fuse_i.h')
-rw-r--r--fs/fuse/fuse_i.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/fuse/fuse_i.h b/fs/fuse/fuse_i.h
index f630951df8dc..5256ad333b05 100644
--- a/fs/fuse/fuse_i.h
+++ b/fs/fuse/fuse_i.h
@@ -985,6 +985,7 @@ ssize_t fuse_listxattr(struct dentry *entry, char *list, size_t size);
int fuse_removexattr(struct inode *inode, const char *name);
extern const struct xattr_handler *fuse_xattr_handlers[];
extern const struct xattr_handler *fuse_acl_xattr_handlers[];
+extern const struct xattr_handler *fuse_no_acl_xattr_handlers[];
struct posix_acl;
struct posix_acl *fuse_get_acl(struct inode *inode, int type);