Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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 activityDownload SCCTChinese

Name:aa_restore_previous_label - exit from hat context restoring previous label*@token: the token that must be matched to exit hat context* Attempt to return out of a hat to the previous label

Proto:int aa_restore_previous_label(u64 token)

Type:int

Parameter:

TypeParameterName
u64token
157  ctx = task_ctx(current process)
160  If token != token Then Return -EACCES
163  If Not previous Then Return 0
166  new = prepare_creds - Prepare a new set of credentials for modification* Prepare a new set of task credentials for modification
167  If Not new Then Return -ENOMEM
170  aa_put_label(cred_label(new))
171  set_cred_label(new, aa_get_newest_label - find the newest version of @l*@l: the label to check for newer versions of* Returns: refcounted newest version of @l taking into account* replacement, renames and removals* return @l.)
172  AA_BUG(!cred_label(new))
174  aa_clear_task_ctx_trans - clear transition tracking info from the ctx*@ctx: task context to clear (NOT NULL)
176  mmit_creds - Install new credentials upon the current task*@new: The credentials to be assigned* Install a new set of credentials to the current task, using RCU to replace* the old set. Both the objective and the subjective credentials pointers are
178  Return 0
Caller
NameDescribe
aa_change_hataa_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