函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称: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

函数原型:static int smk_copy_relabel(struct list_head *nhead, struct list_head *ohead, gfp_t gfp)

返回类型:int

参数:

类型参数名称
struct list_head *nhead
struct list_head *ohead
gfp_tgfp
381  nklep等于分配内存并置零
382  如果(nklep == NULL)则
383  smk_destroy_label_list(nhead)
384  返回:负ENOMEM
386  smk_label等于smk_label
387  添加链表项
390  返回:0
调用者
名称描述
smack_cred_preparesmack_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.