函数逻辑报告 | 
Source Code:security\selinux\hooks.c | 
Create Date:2022-07-27 20:32:59 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| 首页 | 函数Tree | 
| 注解内核,赢得工具 | 下载SCCT | English | 
函数名称:Called 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).
函数原型:static int selinux_sctp_assoc_request(struct sctp_endpoint *ep, struct sk_buff *skb)
返回类型:int
参数:
| 类型 | 参数 | 名称 | 
|---|---|---|
| struct sctp_endpoint * | ep | |
| struct sk_buff * | skb | 
| 5203 | sksec等于sk_security | 
| 5205 | struct lsm_network_audit net = {0, } | 
| 5207 | peer_sid等于SECINITSID_UNLABELED | 
| 5209 | err等于0 | 
| 5211 | 如果非selinux_policycap_extsockclass()则返回:0 | 
| 5214 | peerlbl_active等于selinux_peerlbl_enabled - Check to see if peer labeling is currently enabled* Description:* This function checks if NetLabel or labeled IPSEC is enabled | 
| 5216 | 如果peerlbl_active则 | 
| 5225 | 如果peer_sid恒等于unspecified SID 则peer_sid等于SECINITSID_UNLABELED | 
| 5229 | 如果sctp_assoc_state恒等于SCTP_ASSOC_UNSET则 | 
| 5237 | SID of peer 等于peer_sid | 
| 5238 | 否则如果 SID of peer 不等于peer_sid则 | 
| 5242 | type等于LSM_AUDIT_DATA_NET | 
| 5263 | peer_secid等于peer_sid | 
| 源代码转换工具 开放的插件接口  | X | 
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码  |