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:Fix up the uids and gids in posix acl extended attributes in place.

Proto:static void posix_acl_fix_xattr_userns(struct user_namespace *to, struct user_namespace *from, void *value, size_t size)

Type:void

Parameter:

TypeParameterName
struct user_namespace *to
struct user_namespace *from
void *value
size_tsize
673  header = value
674  entry = header + 1
679  If Not value Then Return
681  If size < sizeof(structposix_acl_xattr_header) Then Return
683  If a_version != cpu_to_le32(Supported ACL a_version fields ) Then Return
686  count = posix_acl_xattr_count(size)
687  If count < 0 Then Return
689  If count == 0 Then Return
692  When entry != end cycle
694  Case le16_to_cpu(e_tag) == ACL_USER
697  Break
698  Case le16_to_cpu(e_tag) == ACL_GROUP
701  Break
702  Default
703  Break
Caller
NameDescribe
posix_acl_fix_xattr_from_user
posix_acl_fix_xattr_to_user