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:11
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:smack_sock_graft - Initialize a newly created socket with an existing sock*@sk: child sock*@parent: parent socket* Set the smk_{in,out} state of an existing sock based on the process that* is creating the new socket.

Proto:static void smack_sock_graft(struct sock *sk, struct socket *parent)

Type:void

Parameter:

TypeParameterName
struct sock *sk
struct socket *parent
4060  skp = Present a pointer to the smack label in the current task blob.
4062  If sk == NULL || sk_family != PF_INET && sk_family != PF_INET6 Then Return
4066  ssp = sk_security
4067  inbound label = skp
4068  outbound label = skp