函数逻辑报告 |
Source Code:security\smack\smack_lsm.c |
Create Date:2022-07-27 20:52:59 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:smack_from_secattr - Convert a netlabel attr.mls.lvl/attr.mls.cat pair to smack*@sap: netlabel secattr*@ssp: socket security information* Returns a pointer to a Smack label entry found on the label list.
函数原型:static struct smack_known *smack_from_secattr(struct netlbl_lsm_secattr *sap, struct socket_smack *ssp)
返回类型:struct smack_known
参数:
类型 | 参数 | 名称 |
---|---|---|
struct netlbl_lsm_secattr * | sap | |
struct socket_smack * | ssp |
3720 | found等于0 |
3724 | 如果flags按位与NETLBL_SECATTR_MLS_LVL的值不等于0则 |
3742 | 如果flags按位与NETLBL_SECATTR_MLS_CAT的值恒等于0则 |
3743 | 如果flags按位与NETLBL_SECATTR_MLS_CAT的值恒等于0则found等于1 |
3746 | 退出 |
3767 | 如果ssp不等于NULL且 inbound label 恒等于smack_known_star则返回:smack_known_web |
3769 | 返回:smack_known_star |
3771 | 如果flags按位与NETLBL_SECATTR_SECID的值不等于0则返回:smack_from_secid(secid) |
3781 | 返回:smack_net_ambient |
名称 | 描述 |
---|---|
smack_socket_sock_rcv_skb | smack_socket_sock_rcv_skb - Smack packet delivery access check*@sk: socket*@skb: packet* Returns 0 if the packet should be delivered, an error code otherwise |
smack_socket_getpeersec_dgram | smack_socket_getpeersec_dgram - pull in packet label*@sock: the peer socket*@skb: packet data*@secid: pointer to where to put the secid of the packet* Sets the netlabel socket state on sk from parent |
smack_inet_conn_request | 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 |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |