函数逻辑报告 |
Source Code:security\selinux\netlabel.c |
Create Date:2022-07-27 20:47:12 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:selinux_netlbl_sock_rcv_skb - Do an inbound access check using NetLabel*@sksec: the sock's sk_security_struct*@skb: the packet*@family: protocol family*@ad: the audit data* Description:* Fetch the NetLabel security attributes from @skb and perform an
函数原型:int selinux_netlbl_sock_rcv_skb(struct sk_security_struct *sksec, struct sk_buff *skb, u16 family, struct common_audit_data *ad)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct sk_security_struct * | sksec | |
struct sk_buff * | skb | |
u16 | family | |
struct common_audit_data * | ad |
442 | rc等于netlbl_skbuff_getattr(skb, family, & secattr) |
446 | 否则nlbl_sid等于SECINITSID_UNLABELED |
453 | 当: sock security class 恒等于SECCLASS_UDP_SOCKET |
454 | perm等于UDP_SOCKET__RECVFROM |
455 | 退出 |
456 | 当: sock security class 恒等于SECCLASS_TCP_SOCKET |
457 | perm等于TCP_SOCKET__RECVFROM |
458 | 退出 |
459 | 默认 |
465 | 如果rc恒等于0则返回:0 |
468 | 如果nlbl_sid不等于SECINITSID_UNLABELED则netlbl_skbuff_err(skb, family, rc, 0) |
470 | 返回:rc |
名称 | 描述 |
---|---|
selinux_sock_rcv_skb_compat |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |