diff options
author | Christian Brauner <brauner@kernel.org> | 2022-08-29 15:38:44 +0300 |
---|---|---|
committer | Christian Brauner (Microsoft) <brauner@kernel.org> | 2022-08-31 17:38:07 +0300 |
commit | 7e1401acd9f2807ff271100c5ce1fa84bf27a252 (patch) | |
tree | 6791e5b6527e0cdb4edf022b13c93e397f047aca /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 52edb4080eb9606536c34d5d642ccd9d35ad5d08 (diff) | |
download | linux-7e1401acd9f2807ff271100c5ce1fa84bf27a252.tar.xz |
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>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions