函数逻辑报告 | 
Source Code:security\smack\smack_lsm.c | 
Create Date:2022-07-27 20:50:15 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| 首页 | 函数Tree | 
| 注解内核,赢得工具 | 下载SCCT | English | 
函数名称:smack_file_ioctl - Smack check on ioctls*@file: the object*@cmd: what to do*@arg: unused* Relies heavily on the correct use of the ioctl command conventions.* Returns 0 if allowed, error code otherwise
函数原型:static int smack_file_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
返回类型:int
参数:
| 类型 | 参数 | 名称 | 
|---|---|---|
| struct file * | file | |
| unsigned int | cmd | |
| unsigned long | arg | 
| 1555 | rc等于0 | 
| 1557 | inode等于file_inode(file) | 
| 1559 | 如果此条件成立可能性小(为编译器优化)(IS_PRIVATE(inode))则返回:0 | 
| 1563 | smk_ad_setfield_u_fs_path( & ad, f_path) | 
| 1565 | 如果_IOC_DIR(cmd)按位与_IOC_WRITE则 | 
| 1567 | rc等于smk_bu_file(file, MAY_WRITE, rc) | 
| 1572 | rc等于smk_bu_file(file, MAY_READ, rc) | 
| 1575 | 返回:rc | 
| 源代码转换工具 开放的插件接口  | X | 
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码  |