函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

函数原型:static void smack_inet_csk_clone(struct sock *sk, const struct request_sock *req)

返回类型:void

参数:

类型参数名称
struct sock *sk
const struct request_sock *req
4185  ssp等于sk_security
4188  如果peer_secid不等于0则
4189  skp等于smack_from_secid(peer_secid)
4190  TCP peer label 等于skp
4191  否则 TCP peer label = NULL