Function report |
Source Code:security\device_cgroup.c |
Create Date:2022-07-28 19:55:50 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name: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
Proto:static bool verify_new_ex(struct dev_cgroup *dev_cgroup, struct dev_exception_item *refex, enum devcg_behavior behavior)
Type:bool
Parameter:
Type | Parameter | Name |
---|---|---|
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 | If behavior == DEVCG_DEFAULT_ALLOW Then |
400 | If behavior == DEVCG_DEFAULT_ALLOW Then |
405 | Return true |
406 | Else |
418 | If match Then Return false |
420 | Return true |
422 | Else |
433 | If match Then Return true |
436 | Else Return false |
439 | Return false |
Name | Describe |
---|---|
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 |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |