函数逻辑报告 |
Source Code:security\smack\smack_lsm.c |
Create Date:2022-07-27 20:53:34 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:smack_inet_conn_request - Smack access check on connect*@sk: socket involved*@skb: packet*@req: unused* Returns 0 if a task with the packet label could write to* the socket, otherwise an error code
函数原型:static int smack_inet_conn_request(struct sock *sk, struct sk_buff *skb, struct request_sock *req)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct sock * | sk | |
struct sk_buff * | skb | |
struct request_sock * | req |
4086 | ssp等于sk_security |
4104 | 如果protocol恒等于htons(Internet Protocol packet )则family等于PF_INET |
4106 | 否则返回:0 |
4118 | skp等于smack_from_secid(secmark) |
4119 | 转到:access_check |
4124 | rc等于netlbl_skbuff_getattr(skb, family, & secattr) |
4127 | 否则skp等于smack_known_huh |
4132 | access_check : |
4136 | smk_ad_init_net( & ad, __func__, LSM_AUDIT_DATA_NET, & net) |
4145 | rc等于smk_access(skp, inbound label , MAY_WRITE, & ad) |
4146 | rc等于smk_bu_note("IPv4 connect", skp, inbound label , MAY_WRITE, rc) |
4154 | peer_secid等于smk_secid |
4167 | 如果(hskp == NULL)则rc等于netlbl_req_setattr(req, & wire labels ) |
4169 | 否则netlbl_req_delattr(req) |
4172 | 返回:rc |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |