Function report |
Source Code:security\selinux\netnode.c |
Create Date:2022-07-28 19:09:46 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:sel_netnode_sid_slow - Lookup the SID of a network address using the policy*@addr: the IP address*@family: the address family*@sid: node SID* Description:* This function determines the SID of a network address by quering the* security policy
Proto:static int sel_netnode_sid_slow(void *addr, u16 family, unsigned int *sid)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
void * | addr | |
u16 | family | |
unsigned int * | sid |
196 | spin_lock_bh( & sel_netnode_lock) |
198 | If (node != NULL) Then |
204 | new = kzalloc - allocate memory. The memory is set to zero.*@size: how many bytes of memory are required.*@flags: the type of memory to allocate (see kmalloc). |
207 | ret = security_node_sid( & selinux_state, PF_INET, addr, sizeof(structin_addr), sid) |
209 | If new Then IPv4 node address = addr |
211 | Break |
213 | ret = security_node_sid( & selinux_state, PF_INET6, addr, sizeof(structin6_addr), sid) |
215 | If new Then IPv6 node address = addr |
217 | Break |
218 | Default |
223 | address family = family |
224 | SID for this node = sid |
229 | spin_unlock_bh( & sel_netnode_lock) |
230 | If Value for the false possibility is greater at compile time(ret) Then pr_warn("SELinux: failure in %s(), unable to determine network node label\n", __func__) |
233 | Return ret |
Name | Describe |
---|---|
sel_netnode_sid | sel_netnode_sid - Lookup the SID of a network address*@addr: the IP address*@family: the address family*@sid: node SID* Description:* This function determines the SID of a network address using the fastest* method possible |
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 |