Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:security_add_hooks - Add a modules hooks to the hook lists.*@hooks: the hooks to add*@count: the number of hooks to add*@lsm: the name of the security module* Each LSM has to register its hooks with the infrastructure.

Proto:void __init security_add_hooks(struct security_hook_list *hooks, int count, char *lsm)

Type:void

Parameter:

TypeParameterName
struct security_hook_list *hooks
intcount
char *lsm
448  When i < count cycle
449  lsm = lsm
450  hlist_add_tail_rcu*@n: the element to add to the hash list
457  If slab_is_available() Then
458  If lsm_append(lsm, & lsm_names) < 0 Then panic - halt the system*@fmt: The text string to print* Display a message, then perform cleanups.* This function never returns.
Caller
NameDescribe
selinux_init
smack_initsmack_init - initialize the smack system* Returns 0 on success, -ENOMEM is there's no memory
tomoyo_initmoyo_init - Register TOMOYO Linux as a LSM module.* Returns 0.
apparmor_init
yama_init
loadpin_init
safesetid_security_init
lockdown_lsm_init