diff options
author | Christian Brauner <brauner@kernel.org> | 2023-02-01 14:15:01 +0100 |
---|---|---|
committer | Christian Brauner (Microsoft) <brauner@kernel.org> | 2023-03-06 09:59:20 +0100 |
commit | e499214ce3ef50c50522719e753a1ffc928c2ec1 (patch) | |
tree | 63f403e964ca4b9e80eacad844177b416306d9a0 /kernel | |
parent | a1fbb607340d49f208e90cc0d7bdfff2141cce8d (diff) |
acl: don't depend on IOP_XATTR
All codepaths that don't want to implement POSIX ACLs should simply not
implement the associated inode operations instead of relying on
IOP_XATTR. That's the case for all filesystems today.
For vfs_listxattr() all filesystems that explicitly turn of xattrs for a
given inode all set inode->i_op to a dedicated set of inode operations
that doesn't implement ->listxattr(). We can remove the dependency of
vfs_listxattr() on IOP_XATTR.
Removing this dependency will allow us to decouple POSIX ACLs from
IOP_XATTR and they can still be listed even if no other xattr handlers
are implemented. Otherwise we would have to implement elaborate schemes
to raise IOP_XATTR even if sb->s_xattr is set to NULL.
Signed-off-by: Christian Brauner (Microsoft) <brauner@kernel.org>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions