函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:ima_eventname_init_common

函数原型:static int ima_eventname_init_common(struct ima_event_data *event_data, struct ima_field_data *field_data, bool size_limit)

返回类型:int

参数:

类型参数名称
struct ima_event_data *event_data
struct ima_field_data *field_data
boolsize_limit
371  const char * cur_filename = NULL
372  cur_filename_len等于0
374  BUG_ON(filename == NULL && file == NULL)
376  如果filename
377  cur_filename等于filename
378  cur_filename_len等于strlen - Find the length of a string*@s: The string to be sized
380  如果非size_limitcur_filename_len小于等于IMA_EVENT_NAME_LEN_MAX则转到:out
384  如果file
385  cur_filename等于name
386  cur_filename_len等于strlen - Find the length of a string*@s: The string to be sized
387  否则cur_filename_len等于IMA_EVENT_NAME_LEN_MAX
393  out :
394  返回:ima_write_template_field_data(cur_filename, cur_filename_len, DATA_FMT_STRING, field_data)
调用者
名称描述
ima_eventname_initThis function writes the name of an event (with size limit).
ima_eventname_ng_initThis function writes the name of an event (without size limit).