函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\selinux\avc.c Create Date:2022-07-27 20:16:46
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:avc_xperms_populate

函数原型:static int avc_xperms_populate(struct avc_node *node, struct avc_xperms_node *src)

返回类型:int

参数:

类型参数名称
struct avc_node *node
struct avc_xperms_node *src
358  如果 length associated decision chain 恒等于0则返回:0
360  dest等于avc_xperms_alloc()
361  如果非dest则返回:负ENOMEM
364  memcpy(p, p, p的长度)
365  length associated decision chain 等于 length associated decision chain
369  dest_xpd等于avc_xperms_decision_alloc(used)
370  如果非dest_xpd则转到:error
372  avc_copy_xperms_decision( & xpd, & xpd)
373  添加链表项
375  xp_node等于dest
376  返回:0
377  error :
378  avc_xperms_free(dest)
379  返回:负ENOMEM
调用者
名称描述
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