函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:set_cred_label

函数原型:static inline void set_cred_label(const struct cred *cred, struct aa_label *label)

返回类型:void

参数:

类型参数名称
const struct cred *cred
struct aa_label *label
33  blob等于 subjective LSM security lbs_cred
35  AA_BUG(!blob)
36  blob等于label
调用者
名称描述
aa_replace_current_labelaa_replace_current_label - replace the current tasks label*@label: new label (NOT NULL)* Returns: 0 or error on failure
aa_set_current_hataa_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
aa_restore_previous_labelaa_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
apparmor_bprm_set_credsapparmor_bprm_set_creds - set the new creds on the bprm struct*@bprm: binprm for the exec (NOT NULL)* Returns: %0 or error on failure* TODO: once the other paths are done see if we can't refactor into a fn
apparmor_cred_freeput the associated labels
apparmor_cred_alloc_blankallocate the apparmor part of blank credentials
apparmor_cred_prepareprepare new cred label for modification by prepare_cred block
apparmor_cred_transferransfer the apparmor data to a blank set of creds
set_init_ctxset_init_ctx - set a task context and profile on the first task.* TODO: allow setting an alternate profile than unconfined