Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:avc_search_node

Proto:static inline struct avc_node *avc_search_node(struct selinux_avc *avc, unsigned int ssid, unsigned int tsid, u16 tclass)

Type:struct avc_node

Parameter:

TypeParameterName
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  If ssid == ssid && tclass == tclass && tsid == tsid Then
536  ret = node
537  Break
541  Return ret
Caller
NameDescribe
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