函数逻辑报告 |
Source Code:security\selinux\hooks.c |
Create Date:2022-07-27 20:30:36 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:file_map_prot_check
函数原型:static int file_map_prot_check(struct file *file, unsigned long prot, int shared)
返回类型:int
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct file * | file | |
| unsigned long | prot | |
| int | shared |
| 3662 | cred等于current_cred - Access the current task's subjective credentials* Access the subjective credentials of the current task. RCU-safe,* since nobody else can modify it.() |
| 3664 | rc等于0 |
| 3666 | 如果default_noexec且prot按位与page can be executed 且非file或IS_PRIVATE(file_inode(file))或非shared且prot按位与page can be written 的值则 |
| 3681 | 如果file则 |
| 3683 | av等于FILE__READ |
| 3686 | 如果shared且prot按位与page can be written 则av或等于FILE__WRITE |
| 3689 | 如果prot按位与page can be executed 则av或等于FILE__EXECUTE |
| 3695 | error : |
| 3696 | 返回:rc |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |