函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:selinux_conn_sid - Determine the child socket label for a connection*@sk_sid: the parent socket's SID*@skb_sid: the packet's SID*@conn_sid: the resulting connection SID* If @skb_sid is valid then the user:role:type information from @sk_sid is* combined

函数原型:static int selinux_conn_sid(unsigned int sk_sid, unsigned int skb_sid, unsigned int *conn_sid)

返回类型:int

参数:

类型参数名称
unsigned intsk_sid
unsigned intskb_sid
unsigned int *conn_sid
4463  err等于0
4465  如果skb_sid不等于unspecified SID err等于security_sid_mls_copy( & selinux_state, sk_sid, skb_sid, conn_sid)
4468  否则conn_sid等于sk_sid
4471  返回:err
调用者
名称描述
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