函数逻辑报告 |
Source Code:security\selinux\selinuxfs.c |
Create Date:2022-07-27 20:37:05 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:sel_read_bool
函数原型:static ssize_t sel_read_bool(struct file *filep, char __user *buf, size_t count, loff_t *ppos)
返回类型:ssize_t
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct file * | filep | |
| char __user * | buf | |
| size_t | count | |
| loff_t * | ppos |
| 1168 | char * page = NULL |
| 1175 | mutex_lock( & mutex) |
| 1178 | 如果index大于等于bool_num或字符串比较则转到:out_unlock |
| 1183 | page等于get_zeroed_page(GFP_KERNEL) |
| 1184 | 如果非page则转到:out_unlock |
| 1188 | 如果cur_enforcing小于0则 |
| 1189 | ret等于cur_enforcing |
| 1190 | 转到:out_unlock |
| 1196 | out_free : |
| 1198 | 返回:ret |
| 1200 | out_unlock : |
| 1202 | 转到:out_free |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |