Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\selinux\netport.c Create Date:2022-07-28 19:10:21
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:sel_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

Proto:int sel_netport_sid(u8 protocol, u16 pnum, unsigned int *sid)

Type:int

Parameter:

TypeParameterName
u8protocol
u16pnum
unsigned int *sid
188  _read_lock() - mark the beginning of an RCU read-side critical section* When synchronize_rcu() is invoked on one CPU while other CPUs* are within RCU read-side critical sections, then the* synchronize_rcu() is guaranteed to block until after all the other
189  port = 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.
190  If (port != NULL) Then
191  sid = SID for this node
192  _read_unlock() - marks the end of an RCU read-side critical section.* In most situations, rcu_read_unlock() is immune from deadlock.* However, in kernels built with CONFIG_RCU_BOOST, rcu_read_unlock()
193  Return 0
195  _read_unlock() - marks the end of an RCU read-side critical section.* In most situations, rcu_read_unlock() is immune from deadlock.* However, in kernels built with CONFIG_RCU_BOOST, rcu_read_unlock()
197  Return sel_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
Caller
NameDescribe
selinux_socket_connect_helperThis supports connect(2) and SCTP connect services such as sctp_connectx(3)* and sctp_sendmsg(3) as described in Documentation/security/SCTP.rst