函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:selinux_netlbl_sidlookup_cached - Cache a SID lookup*@skb: the packet*@secattr: the NetLabel security attributes*@sid: the SID* Description:* Query the SELinux security server to lookup the correct SID for the given* security attributes

函数原型:static int selinux_netlbl_sidlookup_cached(struct sk_buff *skb, u16 family, struct netlbl_lsm_secattr *secattr, unsigned int *sid)

返回类型:int

参数:

类型参数名称
struct sk_buff *skb
u16family
struct netlbl_lsm_secattr *secattr
unsigned int *sid
48  rc等于security_netlbl_secattr_to_sid( & selinux_state, secattr, sid)
49  如果rc恒等于0且flags按位与NETLBL_SECATTR_CACHEABLEflags按位与NETLBL_SECATTR_CACHEnetlbl_cache_add(skb, family, secattr)
54  返回:rc
调用者
名称描述
selinux_netlbl_skbuff_getsidselinux_netlbl_skbuff_getsid - Get the sid of a packet using NetLabel*@skb: the packet*@family: protocol family*@type: NetLabel labeling protocol type*@sid: the SID* Description:* Call the NetLabel mechanism to get the security attributes of the given*
selinux_netlbl_sock_rcv_skbselinux_netlbl_sock_rcv_skb - Do an inbound access check using NetLabel*@sksec: the sock's sk_security_struct*@skb: the packet*@family: protocol family*@ad: the audit data* Description:* Fetch the NetLabel security attributes from @skb and perform an