]> git.ipfire.org Git - thirdparty/linux.git/commit - fs/internal.h
xattr: use posix acl api
authorChristian Brauner <brauner@kernel.org>
Thu, 22 Sep 2022 15:17:22 +0000 (17:17 +0200)
committerChristian Brauner (Microsoft) <brauner@kernel.org>
Thu, 20 Oct 2022 08:13:31 +0000 (10:13 +0200)
commit318e66856ddec05384f32d60b5598128289f4e7b
tree5df1c4b7fbc3e2328be5f016393f2c6decf99b20
parent31acceb97500dd6e9105526301d76488cd6ca21c
xattr: use posix acl api

In previous patches we built a new posix api solely around get and set
inode operations. Now that we have all the pieces in place we can switch
the system calls and the vfs over to only rely on this api when
interacting with posix acls. This finally removes all type unsafety and
type conversion issues explained in detail in [1] that we aim to get rid
of.

With the new posix acl api we immediately translate into an appropriate
kernel internal struct posix_acl format both when getting and setting
posix acls. This is a stark contrast to before were we hacked unsafe raw
values into the uapi struct that was stored in a void pointer relying
and having filesystems and security modules hack around in the uapi
struct as well.

Link: https://lore.kernel.org/all/20220801145520.1532837-1-brauner@kernel.org
Signed-off-by: Christian Brauner (Microsoft) <brauner@kernel.org>
fs/internal.h
fs/posix_acl.c
fs/xattr.c
include/linux/posix_acl_xattr.h