]> git.baikalelectronics.ru Git - 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)
commit1f292593fe3a26ac45f1d46670c24c41eb375d06
tree6203c459f681766f6e073d3a3ffbf9766e77ec91
parent2d5948bbbeb6b9ae63ff9cd5bf84f45f43d946e5
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