Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:ima_eventname_init_common

Proto:static int ima_eventname_init_common(struct ima_event_data *event_data, struct ima_field_data *field_data, bool size_limit)

Type:int

Parameter:

TypeParameterName
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  If filename Then
377  cur_filename = filename
378  cur_filename_len = strlen - Find the length of a string*@s: The string to be sized
380  If Not size_limit || cur_filename_len <= IMA_EVENT_NAME_LEN_MAX Then Go to out
384  If file Then
385  cur_filename = name
386  cur_filename_len = strlen - Find the length of a string*@s: The string to be sized
387  Else cur_filename_len = IMA_EVENT_NAME_LEN_MAX
393  out :
394  Return ima_write_template_field_data(cur_filename, cur_filename_len, DATA_FMT_STRING, field_data)
Caller
NameDescribe
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).