Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\posix_acl.c Create Date:2022-07-28 20:29:49
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Convert from in-memory to extended attribute representation.

Proto:int posix_acl_to_xattr(struct user_namespace *user_ns, const struct posix_acl *acl, void *buffer, size_t size)

Type:int

Parameter:

TypeParameterName
struct user_namespace *user_ns
const struct posix_acl *acl
void *buffer
size_tsize
800  ext_acl = buffer
804  real_size = posix_acl_xattr_size(a_count)
805  If Not buffer Then Return real_size
807  If real_size > size Then Return -ERANGE
810  ext_entry = ext_acl + 1
811  a_version = cpu_to_le32(Supported ACL a_version fields )
813  When n < a_count cycle
814  acl_e = a_entries[n]
815  e_tag = cpu_to_le16(e_tag)
816  e_perm = cpu_to_le16(e_perm)
818  Case e_tag == ACL_USER
821  Break
822  Case e_tag == ACL_GROUP
825  Break
826  Default
828  Break
831  Return real_size
Caller
NameDescribe
posix_acl_xattr_get