Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Create an ACL representing the file mode permission bits of an inode.

Proto:struct posix_acl *posix_acl_from_mode(umode_t mode, gfp_t flags)

Type:struct posix_acl

Parameter:

TypeParameterName
umode_tmode
gfp_tflags
327  acl = Allocate a new ACL with the specified number of entries.
328  If Not acl Then Return ERR_PTR( - ENOMEM)
331  e_tag = _tag entry in struct posix_acl_entry
332  e_perm = (mode & S_IRWXU) >> 6
334  e_tag = ACL_GROUP_OBJ
335  e_perm = (mode & S_IRWXG) >> 3
337  e_tag = ACL_OTHER
338  e_perm = mode & S_IRWXO
339  Return acl