Function report |
Source Code:security\apparmor\lsm.c |
Create Date:2022-07-28 19:53:04 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:mmon_perm - basic common permission check wrapper fn for paths*@op: operation being checked*@path: path to check permission of (NOT NULL)*@mask: requested permissions mask*@cond: conditional info for the permission request (NOT NULL)* Returns: %0 else
Proto:static int common_perm(const char *op, const struct path *path, unsigned int mask, struct path_cond *cond)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| const char * | op | |
| const struct path * | path | |
| unsigned int | mask | |
| struct path_cond * | cond |
| 207 | error = 0 |
| 210 | If Not unconfined(label) Then error = aa_path_perm(op, label, path, 0, mask, cond) |
| 214 | Return error |
| Name | Describe |
|---|---|
| common_perm_cond | mmon_perm_cond - common permission wrapper around inode cond*@op: operation being checked*@path: location to check (NOT NULL)*@mask: requested permissions mask* Returns: %0 else error code if error or permission denied |
| common_perm_dir_dentry | mmon_perm_dir_dentry - common permission wrapper when path is dir, dentry*@op: operation being checked*@dir: directory of the dentry (NOT NULL)*@dentry: dentry to check (NOT NULL)*@mask: requested permissions mask*@cond: conditional info for the |
| 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 |