函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称: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

函数原型:int selinux_netlbl_inet_conn_request(struct request_sock *req, u16 family)

返回类型:int

参数:

类型参数名称
struct request_sock *req
u16family
329  如果family不等于PF_INETfamily不等于PF_INET6则返回: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  如果rc不等于0则转到: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  返回:rc
调用者
名称描述
selinux_inet_conn_request