Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Populate ordered LSMs list from comma-separated LSM name list.

Proto:static void __init ordered_lsm_parse(const char *order, const char *origin)

Type:void

Parameter:

TypeParameterName
const char *order
const char *origin
213  When lsm < __end_lsm_info cycle
214  If Optional: default is LSM_ORDER_MUTABLE == This is only for capabilities. Then append_ordered_lsm(lsm, "first")
219  If chosen_major_lsm Then
228  When major < __end_lsm_info cycle
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  When ((name = strsep - Split a string into tokens*@s: The string to be searched*@ct: The characters to search for* strsep() updates @s to point after the token, ready for the next call.* It returns empty tokens, too, behaving exactly like the libc function) != NULL) cycle
243  bool found = false
245  When lsm < __end_lsm_info cycle
249  found = true
253  If Not found Then init_debug("%s ignored: %s\n", origin, name)
258  If chosen_major_lsm Then
259  When lsm < __end_lsm_info cycle
262  If strcmp( Required. , chosen_major_lsm) == 0 Then append_ordered_lsm(lsm, "security=")
268  When lsm < __end_lsm_info cycle
269  If Is an LSM already listed in the ordered LSMs list? Then Continue
271  set_enabled(lsm, false)
272  init_debug("%s disabled: %s\n", origin, Required. )
275  kfree(sep)
Caller
NameDescribe
ordered_lsm_init