internal: add may_write_xattr()

Split out the generic checks whether an inode allows writing xattrs. Since
security.* and system.* xattrs don't have any restrictions and we're going
to split out posix acls into a dedicated api we will use this helper to
check whether we can write posix acls.

Signed-off-by: Christian Brauner (Microsoft) <brauner@kernel.org>
This commit is contained in:
Christian Brauner 2022-09-29 10:47:36 +02:00 • committed by Christian Brauner (Microsoft)
commit 56851bc9b9
No known key found for this signature in database
GPG key ID: 91C61BC06578DCA2
2 changed files with 31 additions and 13 deletions