函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

函数原型:static void smack_sock_graft(struct sock *sk, struct socket *parent)

返回类型:void

参数:

类型参数名称
struct sock *sk
struct socket *parent
4060  skp等于Present a pointer to the smack label in the current task blob.
4062  如果sk恒等于NULLsk_family不等于PF_INETsk_family不等于PF_INET6则返回
4066  ssp等于sk_security
4067  inbound label 等于skp
4068  outbound label 等于skp