函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:ordered_lsm_init

函数原型:static void __init ordered_lsm_init(void)

返回类型:void

参数:

287  Ordered list of LSMs to initialize. 等于分配数组内存并置零
290  如果Boot-time LSM user choice
291  如果chosen_major_lsm
292  打印信息("security= is ignored because it is superseded by lsm=\n")
293  chosen_major_lsm = NULL
295  Populate ordered LSMs list from comma-separated LSM name list.
296  否则Populate ordered LSMs list from comma-separated LSM name list.
299 lsm循环Prepare LSM for initialization.
302  init_debug("cred blob size = %d\n", lbs_cred)
303  init_debug("file blob size = %d\n", lbs_file)
304  init_debug("inode blob size = %d\n", lbs_inode)
305  init_debug("ipc blob size = %d\n", lbs_ipc)
306  init_debug("msg_msg blob size = %d\n", lbs_msg_msg)
307  init_debug("task blob size = %d\n", lbs_task)
312  如果lbs_filelsm_file_cache等于创建高速缓存区
316  如果lbs_inodelsm_inode_cache等于创建高速缓存区
321  lsm_early_cred((structcred * )cred)
322  lsm_early_task(当前进程)
323 lsm循环Initialize a given LSM, if it is enabled.
326  释放内存
调用者
名称描述
security_init内核安全框架初始化