| Function report | 
| Source Code: security\apparmor\task.c | Create Date:2022-07-28 19:50:32 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:aa_replace_current_label - replace the current tasks label*@label: new label (NOT NULL)* Returns: 0 or error on failure
Proto:int aa_replace_current_label(struct aa_label *label)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct aa_label * | label | 
| 44 | ctx = task_ctx(current process) | 
| 55 | new = prepare_creds - Prepare a new set of credentials for modification* Prepare a new set of task credentials for modification | 
| 59 | If nnp && label_is_stale(nnp) Then | 
| 63 | aa_put_label(tmp) | 
| 65 | If unconfined(label) || labels_ns(old) != labels_ns(label) Then aa_clear_task_ctx_trans - clear transition tracking info from the ctx*@ctx: task context to clear (NOT NULL) | 
| 78 | aa_get_label(label) | 
| 79 | aa_put_label(cred_label(new)) | 
| 80 | set_cred_label(new, label) | 
| 83 | Return 0 | 
| Name | Describe | 
|---|---|
| aa_change_profile | aa_change_profile - perform a one-way profile transition*@fqname: name of profile may include namespace (NOT NULL)*@onexec: whether this transition is to take place immediately or at exec*@flags: flags affecting change behavior | 
| aa_pivotroot | |
| begin_current_label_crit_section | gin_current_label_crit_section - current's confining label and update it* Returns: up to date confining label or the ns unconfined label (NOT NULL)* Not safe to call inside locks* The returned reference must be put with end_current_label_crit_section()* | 
| 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 |