Function report |
Source Code:security\selinux\avc.c |
Create Date:2022-07-28 18:43:37 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:avc_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
Proto:static struct avc_node *avc_insert(struct selinux_avc *avc, unsigned int ssid, unsigned int tsid, u16 tclass, struct av_decision *avd, struct avc_xperms_node *xp_node)
Type:struct avc_node
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct selinux_avc * | avc | |
| unsigned int | ssid | |
| unsigned int | tsid | |
| u16 | tclass | |
| struct av_decision * | avd | |
| struct avc_xperms_node * | xp_node |
| 623 | If avc_latest_notif_update(avc, seqno, 1) Then Return NULL |
| 626 | node = avc_alloc_node(avc) |
| 627 | If Not node Then Return NULL |
| 631 | If avc_xperms_populate(node, xp_node) Then |
| 632 | avc_node_kill(avc, node) |
| 633 | Return NULL |
| 637 | head = head for avc_node->list [hvalue] |
| 638 | lock = lock for writes [hvalue] |
| 639 | spin_lock_irqsave(lock, flag) |
| 644 | avc_node_replace(avc, node, pos) |
| 645 | Go to found |
| 649 | found : |
| 650 | spin_unlock_irqrestore(lock, flag) |
| 651 | Return node |
| Name | Describe |
|---|---|
| avc_compute_av | Slow-path helper function for avc_has_perm_noaudit,* when the avc_node lookup fails |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |