Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:selinux_netlbl_sock_getattr - Get the cached NetLabel secattr*@sk: the socket*@sid: the SID* Query the socket's cached secattr and if the SID matches the cached value* return the cache, otherwise return NULL.

Proto:static struct netlbl_lsm_secattr *selinux_netlbl_sock_getattr(const struct sock *sk, unsigned int sid)

Type:struct netlbl_lsm_secattr

Parameter:

TypeParameterName
const struct sock *sk
unsigned intsid
103  sksec = sk_security
104  secattr = NetLabel sec attributes
106  If (secattr == NULL) Then Return NULL
109  If flags & NETLBL_SECATTR_SECID && secid == sid Then Return secattr
113  Return NULL
Caller
NameDescribe
selinux_netlbl_skbuff_setsidselinux_netlbl_skbuff_setsid - Set the NetLabel on a packet given a sid*@skb: the packet*@family: protocol family*@sid: the SID* Description* Call the NetLabel mechanism to set the label of a packet using @sid.