Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Convert from a Solaris ACL to a POSIX 1003.1e draft 17 ACL.

Proto:static int posix_acl_from_nfsacl(struct posix_acl *acl)

Type:int

Parameter:

TypeParameterName
struct posix_acl *acl
221  struct posix_acl_entry * pa, * pe, * group_obj = NULL, * mask = NULL
224  If Not acl Then Return 0
227  sort(a_entries, a_count, sizeof(structposix_acl_entry), cmp_acl_entry, NULL)
233  Case e_tag == _tag entry in struct posix_acl_entry
234  Break
235  Case e_tag == ACL_GROUP_OBJ
236  group_obj = pa
237  Break
238  Case e_tag == ACL_MASK
239  mask = pa
241  Case e_tag == ACL_OTHER
242  Break
245  If a_count == 4 && group_obj && mask && e_perm == e_perm Then
248  Not static to avoid a conflict with the prototype in the Linux headers.
250  a_count = 3
252  Return 0
Caller
NameDescribe
nfsacl_decodesacl_decode - Decode an NFSv3 ACL*@buf: xdr_buf containing XDR'd ACL data to decode*@base: byte offset in xdr_buf where XDR'd ACL begins*@aclcnt: count of ACEs in decoded posix_acl*@pacl: buffer in which to place decoded posix_acl