函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:avc_latest_notif_update

函数原型:static int avc_latest_notif_update(struct selinux_avc *avc, int seqno, int is_insert)

返回类型:int

参数:

类型参数名称
struct selinux_avc *avc
intseqno
intis_insert
574  ret等于0
575  DEFINE_SPINLOCK(notif_lock)
578  spin_lock_irqsave( & notif_lock, flag)
579  如果is_insert
581  打印警告信息("SELinux: avc: seqno %d < latest_notif %d\n", seqno, latest revocation notification )
583  ret等于负EAGAIN
585  否则
586  如果seqno大于 latest revocation notification latest revocation notification 等于seqno
589  spin_unlock_irqrestore( & notif_lock, flag)
591  返回:ret
调用者
名称描述
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