Files
linux/fs
Christian Brauner 7e1401acd9 ovl: use vfs_set_acl_prepare()
The posix_acl_from_xattr() helper should mainly be used in
i_op->get_acl() handlers. It translates from the uapi struct into the
kernel internal POSIX ACL representation and doesn't care about mount
idmappings.

Use the vfs_set_acl_prepare() helper to generate a kernel internal POSIX
ACL representation in struct posix_acl format taking care to map from
the mount idmapping into the filesystem's idmapping.

The returned struct posix_acl is in the correct format to be cached by
the VFS or passed to the filesystem's i_op->set_acl() method to write to
the backing store.

Signed-off-by: Christian Brauner (Microsoft) <brauner@kernel.org>
Reviewed-by: Seth Forshee (DigitalOcean) <sforshee@kernel.org>
2022-08-31 16:38:07 +02:00
..
2022-07-02 18:52:21 +09:00
2022-08-13 17:20:51 -07:00
2022-06-29 08:51:06 -04:00
2022-05-09 16:21:45 -04:00
2022-07-26 13:38:47 +02:00
2022-08-31 16:38:07 +02:00
2022-05-09 16:21:46 -04:00
2022-05-23 20:24:12 -05:00
2022-07-15 23:42:30 -07:00
2022-07-16 09:19:15 -04:00
2022-07-24 18:39:10 -06:00
2022-06-28 13:58:05 -04:00
2022-05-22 21:03:01 +01:00