函数逻辑报告 |
Source Code:security\device_cgroup.c |
Create Date:2022-07-27 21:52:09 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称: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
函数原型:static bool verify_new_ex(struct dev_cgroup *dev_cgroup, struct dev_exception_item *refex, enum devcg_behavior behavior)
返回类型:bool
参数:
类型 | 参数 | 名称 |
---|---|---|
struct dev_cgroup * | dev_cgroup | |
struct dev_exception_item * | refex | |
enum devcg_behavior | behavior |
393 | bool match = false |
395 | RCU_LOCKDEP_WARN(!_read_lock_held() - might we be in RCU read-side critical section?* If CONFIG_DEBUG_LOCK_ALLOC is selected, returns nonzero iff in an RCU* read-side critical section && !lockdep_is_held( & devcgroup_mutex), "device_cgroup:verify_new_ex called without proper synchronization") |
399 | 如果behavior恒等于DEVCG_DEFAULT_ALLOW则 |
422 | 否则 |
433 | 如果match则返回:true |
436 | 否则返回:false |
439 | 返回:false |
名称 | 描述 |
---|---|
parent_has_perm | parent_has_perm:* when adding a new allow rule to a device exception list, the rule* must be allowed in the parent device |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |