Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:selinux_netlbl_inet_conn_request - Label an incoming stream connection*@req: incoming connection request socket* Description:* A new incoming connection request is represented by @req, we need to label* the new request_sock here and the stack will ensure

Proto:int selinux_netlbl_inet_conn_request(struct request_sock *req, u16 family)

Type:int

Parameter:

TypeParameterName
struct request_sock *req
u16family
329  If family != PF_INET && family != PF_INET6 Then Return 0
332  lbl_secattr_init - Initialize a netlbl_lsm_secattr struct*@secattr: the struct to initialize* Description:* Initialize an already allocated netlbl_lsm_secattr struct.
333  rc = security_netlbl_sid_to_secattr( & selinux_state, secid, & secattr)
335  If rc != 0 Then Go to inet_conn_request_return
337  rc = netlbl_req_setattr(req, & secattr)
338  inet_conn_request_return :
339  lbl_secattr_destroy - Clears a netlbl_lsm_secattr struct*@secattr: the struct to clear* Description:* Destroys the @secattr struct, including freeing all of the internal buffers.* The struct must be reset with a call to netlbl_secattr_init() before reuse.
340  Return rc
Caller
NameDescribe
selinux_inet_conn_request