函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:selinux_inet_conn_request

函数原型:static int selinux_inet_conn_request(struct sock *sk, struct sk_buff *skb, struct request_sock *req)

返回类型:int

参数:

类型参数名称
struct sock *sk
struct sk_buff *skb
struct request_sock *req
5372  sksec等于sk_security
5374  family等于family
5378  err等于selinux_skb_peerlbl_sid - Determine the peer label of a packet*@skb: the packet*@family: protocol family*@sid: the packet's peer label SID* Description:* Check the various different forms of network peer labeling and determine* the peer label/SID for the
5379  如果err则返回:err
5381  err等于selinux_conn_sid - Determine the child socket label for a connection*@sk_sid: the parent socket's SID*@skb_sid: the packet's SID*@conn_sid: the resulting connection SID* If @skb_sid is valid then the user:role:type information from @sk_sid is* combined
5382  如果err则返回:err
5384  secid等于connsid
5385  peer_secid等于peersid
5387  返回: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