Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:selinux_inet_conn_request

Proto:static int selinux_inet_conn_request(struct sock *sk, struct sk_buff *skb, struct request_sock *req)

Type:int

Parameter:

TypeParameterName
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  If err Then Return 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  If err Then Return err
5384  secid = connsid
5385  peer_secid = peersid
5387  Return 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