Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\selinux\avc.c Create Date:2022-07-28 18:43:13
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:avc_xperms_populate

Proto:static int avc_xperms_populate(struct avc_node *node, struct avc_xperms_node *src)

Type:int

Parameter:

TypeParameterName
struct avc_node *node
struct avc_xperms_node *src
358  If length associated decision chain == 0 Then Return 0
360  dest = avc_xperms_alloc()
361  If Not dest Then Return -ENOMEM
364  memcpy(p, p, size of p )
365  length associated decision chain = length associated decision chain
369  dest_xpd = avc_xperms_decision_alloc(used)
370  If Not dest_xpd Then Go to error
372  avc_copy_xperms_decision( & xpd, & xpd)
373  list_add - add a new entry*@new: new entry to be added*@head: list head to add it after* Insert a new entry after the specified head.* This is good for implementing stacks.
375  xp_node = dest
376  Return 0
377  error :
378  avc_xperms_free(dest)
379  Return -ENOMEM
Caller
NameDescribe
avc_insertavc_insert - Insert an AVC entry.*@ssid: source security identifier*@tsid: target security identifier*@tclass: target security class*@avd: resulting av decision*@xp_node: resulting extended permissions* Insert an AVC entry for the SID pair
avc_update_nodeavc_update_node Update an AVC entry*@event : Updating event*@perms : Permission mask bits*@ssid,@tsid,@tclass : identifier of an AVC entry*@seqno : sequence number when decision was made*@xpd: extended_perms_decision to be added to the node