函数逻辑报告 |
Source Code:security\selinux\hooks.c |
Create Date:2022-07-27 20:30:29 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:Check whether a task has the ioctl permission and cmd* operation to an inode.
函数原型:static int ioctl_has_perm(const struct cred *cred, struct file *file, unsigned int requested, u16 cmd)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
const struct cred * | cred | |
struct file * | file | |
unsigned int | requested | |
u16 | cmd |
3576 | fsec等于selinux_file(file) |
3577 | inode等于file_inode(file) |
3585 | type等于LSM_AUDIT_DATA_IOCTL_OP |
3590 | 如果ssid不等于 SID of open file description 则 |
3600 | 如果此条件成立可能性小(为编译器优化)(IS_PRIVATE(inode))则返回:0 |
3604 | rc等于The avc extended permissions logic adds an additional 256 bits of* permissions to an avc node when extended permissions for that node are* specified in the avtab |
3607 | out : |
3608 | 返回:rc |
名称 | 描述 |
---|---|
selinux_file_ioctl |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |