Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:avc_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

Proto:static struct avc_node *avc_lookup(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
561  avc_cache_stats_incr(lookups)
562  node = avc_search_node(avc, ssid, tsid, tclass)
564  If node Then Return node
567  avc_cache_stats_incr(misses)
568  Return NULL
Caller
NameDescribe
avc_has_extended_permsThe avc extended permissions logic adds an additional 256 bits of* permissions to an avc node when extended permissions for that node are* specified in the avtab
avc_has_perm_noauditavc_has_perm_noaudit - Check permissions but perform no auditing