函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:apparmor_sock_graft - Initialize newly created socket*@sk: child sock*@parent: parent socket* Note: could set off of SOCK_CTX(parent) but need to track inode and we can* just set sk security information off of current creating process label* Labeling of

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

返回类型:void

参数:

类型参数名称
struct sock *sk
struct socket *parent
1138  ctx等于SK_CTX(sk)
1140  如果非labellabel等于aa_get_current_label - get the newest version of the current tasks label* Returns: newest version of confining label (NOT NULL)* This fn will not update the tasks cred, so it is safe inside of locks* The returned reference must be put with aa_put_label()