函数逻辑报告 |
Source Code:security\device_cgroup.c |
Create Date:2022-07-27 21:52:03 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:match_exception - iterates the exception list trying to find a complete match*@exceptions: list of exceptions*@type: device type (DEVCG_DEV_BLOCK or DEVCG_DEV_CHAR)*@major: device file major number, ~0 to match all*@minor: device file minor number, ~0 to
函数原型:static bool match_exception(struct list_head *exceptions, short type, unsigned int major, unsigned int minor, short access)
返回类型:bool
参数:
类型 | 参数 | 名称 |
---|---|---|
struct list_head * | exceptions | |
short | type | |
unsigned int | major | |
unsigned int | minor | |
short | access |
319 | 如果type按位与DEVCG_DEV_BLOCK且非type按位与DEVCG_DEV_BLOCK的值则继续下一循环 |
321 | 如果type按位与DEVCG_DEV_CHAR且非type按位与DEVCG_DEV_CHAR的值则继续下一循环 |
330 | 返回:true |
332 | 返回:false |
名称 | 描述 |
---|---|
verify_new_ex | verify_new_ex - verifies if a new exception is allowed by parent cgroup's permissions*@dev_cgroup: dev cgroup to be tested against*@refex: new exception*@behavior: behavior of the exception's dev_cgroup* This is used to make sure a child cgroup won't have |
__devcgroup_check_permission | __devcgroup_check_permission - checks if an inode operation is permitted*@dev_cgroup: the dev cgroup to be tested against*@type: device type*@major: device major number*@minor: device minor number*@access: combination of DEVCG_ACC_WRITE, DEVCG_ACC_READ |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |