Function report | 
Source Code:security\apparmor\mount.c | 
Create Date:2022-07-28 19:54:44 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:aa_pivotroot
Proto:int aa_pivotroot(struct aa_label *label, const struct path *old_path, const struct path *new_path)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct aa_label * | label | |
| const struct path * | old_path | |
| const struct path * | new_path | 
| 695 | char * old_buffer = NULL, * new_buffer = NULL, * info = NULL | 
| 702 | old_buffer = aa_get_buffer(false) | 
| 703 | new_buffer = aa_get_buffer(false) | 
| 705 | If Not old_buffer || Not new_buffer Then Go to out | 
| 710 | If Not target Then | 
| 715 | error = aa_replace_current_label - replace the current tasks label*@label: new label (NOT NULL)* Returns: 0 or error on failure | 
| 716 | If error Then | 
| 718 | aa_put_label(target) | 
| 719 | Go to out | 
| 724 | out : | 
| 725 | aa_put_buffer(old_buffer) | 
| 726 | aa_put_buffer(new_buffer) | 
| 728 | Return error | 
| 730 | fail : | 
| 738 | Go to out | 
| Name | Describe | 
|---|---|
| apparmor_sb_pivotroot | 
| 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  |