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_set_current_hat - set the current tasks hat*@label: label to set as the current hat (NOT NULL)*@token: token value that must be specified to change from the hat* Do switch of tasks hat
Proto:int aa_set_current_hat(struct aa_label *label, u64 token)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct aa_label * | label | |
u64 | token |
117 | ctx = task_ctx(current process) |
120 | new = prepare_creds - Prepare a new set of credentials for modification* Prepare a new set of task credentials for modification |
125 | If Not previous Then |
127 | previous = cred_label(new) |
130 | aa_put_label(cred_label(new)) |
131 | Else |
134 | Return -EACCES |
139 | aa_put_label(onexec) |
140 | onexec = NULL |
143 | Return 0 |
Name | Describe |
---|---|
aa_change_hat | aa_change_hat - change hat to/from subprofile*@hats: vector of hat names to try changing into (MAYBE NULL if @count == 0)*@count: number of hat names in @hats*@token: magic value to validate the hat change*@flags: flags affecting behavior of the change |
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 |