Function report |
Source Code:security\apparmor\file.c |
Create Date:2022-07-28 19:54:00 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:aa_path_perm - do permissions check & audit for @path*@op: operation being checked*@label: profile being enforced (NOT NULL)*@path: path to check permissions of (NOT NULL)*@flags: any additional path flags beyond what the profile specifies*@request:
Proto:int aa_path_perm(const char *op, struct aa_label *label, const struct path *path, int flags, unsigned int request, struct path_cond *cond)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| const char * | op | |
| struct aa_label * | label | |
| const struct path * | path | |
| int | flags | |
| unsigned int | request | |
| struct path_cond * | cond |
| 330 | char * buffer = NULL |
| 333 | flags |= delegate deleted files | If S_ISDIR(mode) Then path is a directory Else 0 |
| 335 | buffer = aa_get_buffer(false) |
| 338 | error = fn_for_each_confined(label, profile, profile_path_perm(op, profile, path, buffer, request, cond, flags, & perms)) |
| 342 | aa_put_buffer(buffer) |
| 344 | Return error |
| Name | Describe |
|---|---|
| apparmor_path_rename | |
| apparmor_file_open |
| 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 |