函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Populate ordered LSMs list from comma-separated LSM name list.

函数原型:static void __init ordered_lsm_parse(const char *order, const char *origin)

返回类型:void

参数:

类型参数名称
const char *order
const char *origin
213 lsm小于__end_lsm_info循环
214  如果 Optional: default is LSM_ORDER_MUTABLE 恒等于 This is only for capabilities. append_ordered_lsm(lsm, "first")
219  如果chosen_major_lsm
228 major小于__end_lsm_info循环
232  set_enabled(major, false)
233  init_debug("security=%s disabled: %s\n", chosen_major_lsm, Required. )
239  sep等于kstrdup - allocate space for and copy an existing string*@s: the string to duplicate*@gfp: the GFP mask used in the kmalloc() call when allocating memory* Return: newly allocated copy of @s or %NULL in case of error
240  next等于sep
242  当((name = 分割字符串) != NULL)循环
243  bool found = false
245 lsm小于__end_lsm_info循环
249  found = true
253  如果非foundinit_debug("%s ignored: %s\n", origin, name)
258  如果chosen_major_lsm
259 lsm小于__end_lsm_info循环
260  如果Is an LSM already listed in the ordered LSMs list? 则继续下一循环
262  如果字符串比较恒等于0则append_ordered_lsm(lsm, "security=")
268 lsm小于__end_lsm_info循环
269  如果Is an LSM already listed in the ordered LSMs list? 则继续下一循环
271  set_enabled(lsm, false)
272  init_debug("%s disabled: %s\n", origin, Required. )
275  释放内存
调用者
名称描述
ordered_lsm_init