Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:smack_inet_csk_clone - Copy the connection information to the new socket*@sk: the new socket*@req: the connection's request_sock* Transfer the connection's peer label to the newly created socket.

Proto:static void smack_inet_csk_clone(struct sock *sk, const struct request_sock *req)

Type:void

Parameter:

TypeParameterName
struct sock *sk
const struct request_sock *req
4185  ssp = sk_security
4188  If peer_secid != 0 Then
4189  skp = smack_from_secid(peer_secid)
4190  TCP peer label = skp
4191  Else TCP peer label = NULL