函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:sel_netnode_find - Search for a node record*@addr: IP address*@family: address family* Description:* Search the network node table and return the record matching @addr. If an* entry can not be found in the table return NULL.

函数原型:static struct sel_netnode *sel_netnode_find(const void *addr, u16 family)

返回类型:struct sel_netnode

参数:

类型参数名称
const void *addr
u16family
110  :family恒等于PF_INET
111  idx等于sel_netnode_hashfn_ipv4 - IPv4 hashing function for the node table*@addr: IPv4 address* Description:* This is the IPv4 hashing function for the node interface table, it returns* the bucket number for the given IP address.
112  退出
113  :family恒等于PF_INET6
114  idx等于sel_netnode_hashfn_ipv6 - IPv6 hashing function for the node table*@addr: IPv6 address* Description:* This is the IPv6 hashing function for the node interface table, it returns* the bucket number for the given IP address.
115  退出
116  默认
117  BUG()
118  返回:NULL
121  遍历RCU(node, & list, list)
122  如果 address family 恒等于familyswitch family
124  :family恒等于PF_INET
125  如果 IPv4 node address 恒等于addr则返回:node
127  退出
128  :family恒等于PF_INET6
129  如果ipv6_addr_equal( & IPv6 node address , addr)则返回:node
132  退出
135  返回:NULL
调用者
名称描述
sel_netnode_sid_slowsel_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
sel_netnode_sidsel_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