Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:avc_latest_notif_update

Proto:static int avc_latest_notif_update(struct selinux_avc *avc, int seqno, int is_insert)

Type:int

Parameter:

TypeParameterName
struct selinux_avc *avc
intseqno
intis_insert
574  ret = 0
575  DEFINE_SPINLOCK(notif_lock)
578  spin_lock_irqsave( & notif_lock, flag)
579  If is_insert Then
581  pr_warn("SELinux: avc: seqno %d < latest_notif %d\n", seqno, latest revocation notification )
583  ret = -EAGAIN
585  Else
586  If seqno > latest revocation notification Then latest revocation notification = seqno
589  spin_unlock_irqrestore( & notif_lock, flag)
591  Return ret
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_ss_resetavc_ss_reset - Flush the cache and revalidate migrated permissions.*@seqno: policy sequence number