Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: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

Proto:static int smk_copy_rules(struct list_head *nhead, struct list_head *ohead, gfp_t gfp)

Type:int

Parameter:

TypeParameterName
struct list_head *nhead
struct list_head *ohead
gfp_tgfp
352  rc = 0
355  nrp = Shortcuts
356  If (nrp == NULL) Then
357  rc = -ENOMEM
358  Break
360  nrp = orp
361  list_add_rcu - add a new entry to rcu-protected list*@new: new entry to be added*@head: list head to add it after* Insert a new entry after the specified head
363  Return rc
Caller
NameDescribe
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.