函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:selinux_sock_graft

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

返回类型:void

参数:

类型参数名称
struct sock *sk
struct socket *parent
5186  isec等于inode_security_novalidate(SOCK_INODE(parent))
5188  sksec等于sk_security
5190  如果sk_family恒等于PF_INETsk_family恒等于PF_INET6sk_family恒等于PF_UNIX SID of this object 等于 SID of this object
5193  sock security class 等于 security class of this object