Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:ordered_lsm_init

Proto:static void __init ordered_lsm_init(void)

Type:void

Parameter:Nothing

287  Ordered list of LSMs to initialize. = kcalloc - allocate memory for an array. The memory is set to zero.*@n: number of elements.*@size: element size.*@flags: the type of memory to allocate (see kmalloc).
290  If Boot-time LSM user choice Then
291  If chosen_major_lsm Then
292  pr_info("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  Else Populate ordered LSMs list from comma-separated LSM name list.
299  When lsm cycle 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  If lbs_file Then lsm_file_cache = kmem_cache_create - Create a cache.*@name: A string which is used in /proc/slabinfo to identify this cache.*@size: The size of objects to be created in this cache.*@align: The required alignment for the objects.*@flags: SLAB flags
316  If lbs_inode Then lsm_inode_cache = kmem_cache_create - Create a cache.*@name: A string which is used in /proc/slabinfo to identify this cache.*@size: The size of objects to be created in this cache.*@align: The required alignment for the objects.*@flags: SLAB flags
321  lsm_early_cred((structcred * )cred)
322  lsm_early_task(current process)
323  When lsm cycle Initialize a given LSM, if it is enabled.
326  kfree(Ordered list of LSMs to initialize. )
Caller
NameDescribe
security_initsecurity_init - initializes the security framework* This should be called early in the kernel initialization sequence.