Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:report_load

Proto:static void report_load(const char *origin, struct file *file, char *operation)

Type:void

Parameter:

TypeParameterName
const char *origin
struct file *file
char *operation
24  pathname = Returns allocated NULL-terminated string containing pathname,* with special characters escaped, able to be safely logged. If* there is an error, the leading character will be "<".
25  cmdline = Returns allocated NULL-terminated string containing process* command line, with inter-argument NULLs replaced with spaces,* and other special characters escaped.
27  pr_notice("%s %s obj=%s%s%s pid=%d cmdline=%s%s%s\n", origin, operation, (pathname && pathname[0] != '<') ? "\"" : "", pathname, (pathname && pathname[0] != '<') ? "\"" : "", task_pid_nr(current process), cmdline ? "\"" : "", cmdline, cmdline ? "\"" : "")
35  kfree(cmdline)
36  kfree(pathname)
Caller
NameDescribe
loadpin_read_file