函数逻辑报告 | 
Source Code:security\selinux\hooks.c | 
Create Date:2022-07-27 20:33:22 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| 首页 | 函数Tree | 
| 注解内核,赢得工具 | 下载SCCT | English | 
函数名称:selinux_nlmsg_perm
函数原型:static int selinux_nlmsg_perm(struct sock *sk, struct sk_buff *skb)
返回类型:int
参数:
| 类型 | 参数 | 名称 | 
|---|---|---|
| struct sock * | sk | |
| struct sk_buff * | skb | 
| 5532 | err等于0 | 
| 5535 | sksec等于sk_security | 
| 5537 | 如果len小于NLMSG_HDRLEN则 | 
| 5543 | err等于selinux_nlmsg_lookup( sock security class , Message content , & perm) | 
| 5544 | 如果err则 | 
| 5546 | pr_warn_ratelimited("SELinux: unrecognized netlink message: protocol=%hu nlmsg_type=%hu sclass=%s pig=%d comm=%s\n", sk_protocol, Message content , name, task_pid_nr(当前进程), comm) | 
| 5552 | 如果非enforcing_enabled( & selinux_state)或security_get_allow_unknown( & selinux_state)则err等于0 | 
| 5560 | 转到:out | 
| 5563 | err等于sock_has_perm(sk, perm) | 
| 5564 | out : | 
| 5565 | 返回:err | 
| 名称 | 描述 | 
|---|---|
| selinux_netlink_send | 
| 源代码转换工具 开放的插件接口  | X | 
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码  |