函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:sel_netport_find - Search for a port record*@protocol: protocol*@port: pnum* Description:* Search the network port table and return the matching record. If an entry* can not be found in the table return NULL.

函数原型:static struct sel_netport *sel_netport_find(u8 protocol, u16 pnum)

返回类型:struct sel_netport

参数:

类型参数名称
u8protocol
u16pnum
89  idx等于sel_netport_hashfn - Hashing function for the port table*@pnum: port number* Description:* This is the hashing function for the port table, it returns the bucket* number for the given port.
90  遍历RCU(port, & list, list)
91  如果 port number 恒等于pnum transport protocol 恒等于protocol则返回:port
94  返回:NULL
调用者
名称描述
sel_netport_sid_slowsel_netport_sid_slow - Lookup the SID of a network address using the policy*@protocol: protocol*@pnum: port*@sid: port SID* Description:* This function determines the SID of a network port by quering the security* policy
sel_netport_sidsel_netport_sid - Lookup the SID of a network port*@protocol: protocol*@pnum: port*@sid: port SID* Description:* This function determines the SID of a network port using the fastest method* possible