函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:selinux_skb_peerlbl_sid - Determine the peer label of a packet*@skb: the packet*@family: protocol family*@sid: the packet's peer label SID* Description:* Check the various different forms of network peer labeling and determine* the peer label/SID for the

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

返回类型:int

参数:

类型参数名称
struct sk_buff *skb
u16family
unsigned int *sid
4430  err等于selinux_xfrm_skb_sid(skb, & xfrm_sid)
4431  如果此条件成立可能性小(为编译器优化)(err)则返回:负EACCES
4433  err等于selinux_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*
4434  如果此条件成立可能性小(为编译器优化)(err)则返回:负EACCES
4437  err等于security_net_peersid_resolve( & selinux_state, nlbl_sid, nlbl_type, xfrm_sid, sid)
4439  如果此条件成立可能性小(为编译器优化)(err)则
4440  打印警告信息("SELinux: failure in selinux_skb_peerlbl_sid(), unable to determine packet's peer label\n")
4443  返回:负EACCES
4446  返回:0
调用者
名称描述
selinux_socket_sock_rcv_skb
selinux_socket_getpeersec_dgram
selinux_sctp_assoc_requestCalled whenever SCTP receives an INIT chunk. This happens when an incoming* connect(2), sctp_connectx(3) or sctp_sendmsg(3) (with no association* already present).
selinux_inet_conn_request
selinux_inet_conn_established