]> asedeno.scripts.mit.edu Git - linux.git/commit
staging: erofs: complete POSIX ACL support
authorGao Xiang <gaoxiang25@huawei.com>
Tue, 29 Jan 2019 08:35:20 +0000 (16:35 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 Jan 2019 14:38:50 +0000 (15:38 +0100)
commit516c115c9170f5835102ef3982d7073808da540b
tree4a94b5f62816c5f7098ab56448c64fe5cad0bec6
parenta24df1f62f7929d5d8f31fc64988581e160057d1
staging: erofs: complete POSIX ACL support

Let's add .get_acl() to read the file's acl from its xattrs
to make POSIX ACL usable.

Here is the on-disk detail,
fullname: system.posix_acl_access
struct erofs_xattr_entry:
        .e_name_len = 0
        .e_name_index = EROFS_XATTR_INDEX_POSIX_ACL_ACCESS (2)

fullname: system.posix_acl_default
struct erofs_xattr_entry:
.e_name_len = 0
.e_name_index = EROFS_XATTR_INDEX_POSIX_ACL_DEFAULT (3)

Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Gao Xiang <gaoxiang25@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/erofs/Documentation/filesystems/erofs.txt
drivers/staging/erofs/inode.c
drivers/staging/erofs/namei.c
drivers/staging/erofs/super.c
drivers/staging/erofs/xattr.c
drivers/staging/erofs/xattr.h