函数逻辑报告 |
Source Code:security\smack\smack_lsm.c |
Create Date:2022-07-27 20:51:13 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:smack_netlbel_send - Set the secattr on a socket and perform access checks*@sk: the socket*@sap: the destination address* Set the correct secattr for the given socket based on the destination* address and perform any outbound access checks needed.
函数原型:static int smack_netlabel_send(struct sock *sk, struct sockaddr_in *sap)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct sock * | sk | |
struct sockaddr_in * | sap |
2456 | ssp等于sk_security |
2461 | 如果(hkp != NULL)则 |
2465 | smk_ad_init_net( & ad, __func__, LSM_AUDIT_DATA_NET, & net) |
2466 | family等于 Address family |
2467 | dport等于 Port number |
2471 | skp等于 outbound label |
2474 | 否则 |
2475 | sk_lbl等于SMACK_CIPSO_SOCKET |
2476 | rc等于0 |
名称 | 描述 |
---|---|
smack_socket_connect | smack_socket_connect - connect access check*@sock: the socket*@sap: the other end*@addrlen: size of sap* Verifies that a connection may be possible* Returns 0 on success, and error code otherwise |
smack_socket_sendmsg | smack_socket_sendmsg - Smack check based on destination host*@sock: the socket*@msg: the message*@size: the size of the message* Return 0 if the current subject can write to the destination host. |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |