]> git.ipfire.org Git - people/arne_f/kernel.git/commit
fuse: Ensure posix acls are translated outside of init_user_ns
authorEric W. Biederman <ebiederm@xmission.com>
Fri, 4 May 2018 16:47:28 +0000 (11:47 -0500)
committerMiklos Szeredi <mszeredi@redhat.com>
Thu, 31 May 2018 10:26:10 +0000 (12:26 +0200)
commite45b2546e23c2d10f8585063a15c745a7603fac9
tree6203c459f681766f6e073d3a3ffbf9766e77ec91
parent5ba24197b94d4070d8c2a17fa4944a55cc39ef03
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>
fs/fuse/fuse_i.h
fs/fuse/inode.c
fs/fuse/xattr.c