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

Proto:static struct aa_label *sk_peer_label(struct sock *sk)

Type:struct aa_label

Parameter:

TypeParameterName
struct sock *sk
1054  ctx = SK_CTX(sk)
1056  If peer Then Return peer
1059  Return ERR_PTR( - ENOPROTOOPT)
Caller
NameDescribe
apparmor_socket_getpeersec_streamapparmor_socket_getpeersec_stream - get security context of peer* Note: for tcp only valid if using ipsec or cipso on lan