函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\apparmor\task.c Create Date:2022-07-27 21:26:21
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:aa_replace_current_label - replace the current tasks label*@label: new label (NOT NULL)* Returns: 0 or error on failure

函数原型:int aa_replace_current_label(struct aa_label *label)

返回类型:int

参数:

类型参数名称
struct aa_label *label
43  old等于aa_current_raw_label - find the current tasks confining label* Returns: up to date confining label or the ns unconfined label (NOT NULL)* This fn will not update the tasks cred to the most up to date version
44  ctx等于task_ctx(当前进程)
47  AA_BUG(!label)
49  如果old恒等于label则返回:0
52  如果current_cred - Access the current task's subjective credentials* Access the subjective credentials of the current task. RCU-safe,* since nobody else can modify it.()不等于current_real_cred - Access the current task's objective credentials* Access the objective credentials of the current task. RCU-safe,* since nobody else can modify it.()则返回:负EBUSY
55  new等于prepare_creds - Prepare a new set of credentials for modification* Prepare a new set of task credentials for modification
56  如果非new则返回:负ENOMEM
59  如果nnplabel_is_stale(nnp)则
60  tmp等于nnp
62  nnp等于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.
63  aa_put_label(tmp)
65  如果unconfined(label)或labels_ns(old)不等于labels_ns(label)则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)
82  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
83  返回:0
调用者
名称描述
aa_change_profileaa_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_sectiongin_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()*