Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\apparmor\lsm.c Create Date:2022-07-28 19:53:07
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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

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

Type:void

Parameter:

TypeParameterName
struct sock *sk
struct socket *parent
1138  ctx = SK_CTX(sk)
1140  If Not label Then label = 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()