函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\auditsc.c Create Date:2022-07-27 12:30:52
Last Modify:2020-03-17 16:31:21 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:audit_log_proctitle

函数原型:static void audit_log_proctitle(void)

返回类型:void

参数:

1404  msg等于"(null)"
1405  len等于strlen - Find the length of a string*@s: The string to be sized
1406  context等于audit_context()
1409  如果非context调用号则返回
1412  ab等于申请审计缓冲区
1413  如果非ab则返回
1416  写入审计信息
1419  如果非 the cmdline field
1420  buf等于开辟内存
1421  如果非buf则转到:out
1424  res等于get_cmdline() - copy the cmdline value to a buffer.*@task: the task whose cmdline value to copy.*@buffer: the buffer to copy to.*@buflen: the length of the buffer. Larger cmdline values are truncated* to this length.
1425  如果res恒等于0则
1426  kfree(buf)
1427  转到:out
1429  res等于audit_proctitle_rtrim(buf, res)
1430  如果res恒等于0则
1431  kfree(buf)
1432  转到:out
1434  the cmdline field 等于buf
1435  length of the cmdline field. 等于res
1437  msg等于 the cmdline field
1438  len等于 length of the cmdline field.
1439  out :
1440  audit_log_n_untrustedstring - log a string that may contain random characters*@ab: audit_buffer*@len: length of string (not including trailing null)*@string: string to be logged* This code will escape a string that is passed to it if the string* contains
1441  发送审计信息,并释放缓冲区
调用者
名称描述
audit_log_exit