acl: return EOPNOTSUPP in posix_acl_fix_xattr_common()
authorChristian Brauner <brauner@kernel.org>
Mon, 29 Aug 2022 12:38:41 +0000 (14:38 +0200)
committerChristian Brauner (Microsoft) <brauner@kernel.org>
Wed, 31 Aug 2022 06:49:49 +0000 (08:49 +0200)
commit985a6d0b3c800265a2d5312a52c549bf09254e55
treeb7a0ee3d0e515b969736d908e26cc0b86b49aaa4
parenta26aa12384158116c0d80d50e0bdc7b3323551e2
acl: return EOPNOTSUPP in posix_acl_fix_xattr_common()

Return EOPNOTSUPP when the POSIX ACL version doesn't match and zero if
there are no entries. This will allow us to reuse the helper in
posix_acl_from_xattr(). This change will have no user visible effects.

Fixes: 0c5fd887d2bb ("acl: move idmapped mount fixup into vfs_{g,s}etxattr()")
Signed-off-by: Christian Brauner (Microsoft) <brauner@kernel.org>
Reviewed-by: Seth Forshee (DigitalOcean) <sforshee@kernel.org>>
fs/posix_acl.c