mirror of
https://github.com/lkl/linux.git
synced 2025-12-19 16:13:19 +09:00
ovl: use posix acl api
Now that posix acls have a proper api us it to copy them. All filesystems that can serve as lower or upper layers for overlayfs have gained support for the new posix acl api in previous patches. So switch all internal overlayfs codepaths for copying posix acls to the new posix acl api. Acked-by: Miklos Szeredi <miklos@szeredi.hu> Signed-off-by: Christian Brauner (Microsoft) <brauner@kernel.org>
This commit is contained in:
committed by
Christian Brauner (Microsoft)
parent
0e64185732
commit
31acceb975
@@ -22,6 +22,12 @@
|
||||
struct inode;
|
||||
struct dentry;
|
||||
|
||||
static inline bool is_posix_acl_xattr(const char *name)
|
||||
{
|
||||
return (strcmp(name, XATTR_NAME_POSIX_ACL_ACCESS) == 0) ||
|
||||
(strcmp(name, XATTR_NAME_POSIX_ACL_DEFAULT) == 0);
|
||||
}
|
||||
|
||||
/*
|
||||
* struct xattr_handler: When @name is set, match attributes with exactly that
|
||||
* name. When @prefix is set instead, match attributes with that prefix and
|
||||
|
||||
Reference in New Issue
Block a user