函数逻辑报告 |
Source Code:security\selinux\hooks.c |
Create Date:2022-07-27 20:28:12 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:Convert a Linux file to an access vector.
函数原型:static inline unsigned int file_to_av(struct file *file)
返回类型:unsigned int
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct file * | file |
| 2007 | av等于0 |
| 2009 | 如果f_mode按位与le is open for reading 则av或等于FILE__READ |
| 2011 | 如果f_mode按位与le is open for writing 则 |
| 2012 | 如果f_flags按位与O_APPEND则av或等于FILE__APPEND |
| 2014 | 否则av或等于FILE__WRITE |
| 2017 | 如果非av则 |
| 2021 | av等于FILE__IOCTL |
| 2024 | 返回:av |
| 名称 | 描述 |
|---|---|
| open_file_to_av | Convert a file to an access vector and include the correct open* open permission. |
| selinux_binder_transfer_file | |
| match_file | |
| selinux_file_receive |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |