函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:avc_search_node

函数原型:static inline struct avc_node *avc_search_node(struct selinux_avc *avc, unsigned int ssid, unsigned int tsid, u16 tclass)

返回类型:struct avc_node

参数:

类型参数名称
struct selinux_avc *avc
unsigned intssid
unsigned inttsid
u16tclass
526  struct avc_node * node, * ret = NULL
530  hvalue等于avc_hash(ssid, tsid, tclass)
531  head等于 head for avc_node->list [hvalue]
533  如果ssid恒等于ssidtclass恒等于tclasstsid恒等于tsid
536  ret等于node
537  退出
541  返回:ret
调用者
名称描述
avc_lookupavc_lookup - Look up an AVC entry.*@ssid: source security identifier*@tsid: target security identifier*@tclass: target security class* Look up an AVC entry that is valid for the* (@ssid, @tsid), interpreting the permissions* based on @tclass