Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:smk_insert_entry - insert a smack label into a hash map,* this function must be called under smack_known_lock

Proto:void smk_insert_entry(struct smack_known *skp)

Type:void

Parameter:

TypeParameterName
struct smack_known *skp
407  hash = Version 2: One word (32 or 64 bits) at a time.* If CONFIG_DCACHE_WORD_ACCESS is defined (meaning * exists, which describes major Linux platforms like x86 and ARM), then* this computes a different hash function much faster.
408  head = smack_known_hash[hash & (SMACK_HASH_SLOTS - 1)]
410  adds the specified element to the specified hlist
411  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
Caller
NameDescribe
init_smack_known_list
smk_import_entrysmk_import_entry - import a label, return the list entry*@string: a text string that might be a Smack label*@len: the maximum size, or zero if it is NULL terminated