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:match_exception_partial - iterates the exception list trying to find a partial 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,
Proto:static bool match_exception_partial(struct list_head *exceptions, short type, unsigned int major, unsigned int minor, short access)
Type:bool
Parameter:
Type | Parameter | Name |
---|---|---|
struct list_head * | exceptions | |
short | type | |
unsigned int | major | |
unsigned int | minor | |
short | access |
356 | If type & DEVCG_DEV_BLOCK && Not (type & DEVCG_DEV_BLOCK) Then Continue |
358 | If type & DEVCG_DEV_CHAR && Not (type & DEVCG_DEV_CHAR) Then Continue |
375 | Return true |
377 | Return false |
Name | Describe |
---|---|
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 |
parent_allows_removal | parent_allows_removal - verify if it's ok to remove an exception*@childcg: child cgroup from where the exception will be removed*@ex: exception being removed* When removing an exception in cgroups with default ALLOW policy, it must* be checked if removing |
__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 |
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 |