Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\smack\smack_lsm.c Create Date:2022-07-28 19:21:44
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:smack_cred_prepare - prepare new set of credentials for modification*@new: the new credentials*@old: the original credentials*@gfp: the atomicity of any memory allocations* Prepare a new set of credentials for modification.

Proto:static int smack_cred_prepare(struct cred *new, const struct cred *old, gfp_t gfp)

Type:int

Parameter:

TypeParameterName
struct cred *new
const struct cred *old
gfp_tgfp
1947  old_tsp = smack_cred(old)
1948  new_tsp = smack_cred(new)
1951  _task_smack - initialize a task security blob*@tsp: blob to initialize*@task: a pointer to the Smack label for the running task*@forked: a pointer to the Smack label for the forked task
1953  rc = smk_copy_rules - copy a rule set*@nhead: new rules header pointer*@ohead: old rules header pointer*@gfp: type of the memory for the allocation* Returns 0 on success, -ENOMEM on error
1954  If rc != 0 Then Return rc
1957  rc = smk_copy_relabel - copy smk_relabel labels list*@nhead: new rules header pointer*@ohead: old rules header pointer*@gfp: type of the memory for the allocation* Returns 0 on success, -ENOMEM on error
1959  Return rc