函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

函数原型:void __init security_add_hooks(struct security_hook_list *hooks, int count, char *lsm)

返回类型:void

参数:

类型参数名称
struct security_hook_list *hooks
intcount
char *lsm
448 i小于count循环
449  lsm等于lsm
450  hlist_add_tail_rcu*@n: the element to add to the hash list
457  如果slab_is_available()则
458  如果lsm_append(lsm, & lsm_names)小于0则panic - halt the system*@fmt: The text string to print* Display a message, then perform cleanups.* This function never returns.
调用者
名称描述
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