函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:ma_d_path - return a pointer to the full pathname* Attempt to return a pointer to the full pathname for use in the* IMA measurement list, IMA audit records, and auditing logs

函数原型:const char *ima_d_path(const struct path *path, char **pathbuf, char *namebuf)

返回类型:char

参数:

类型参数名称
const struct path *path
char **pathbuf
char *namebuf
386  char * pathname = NULL
388  pathbuf等于__getname()
389  如果pathbuf
390  pathname等于d_absolute_path(path, * pathbuf, # chars in a path name including nul )
391  如果是错误
392  __putname( * pathbuf)
393  * pathbuf = NULL
394  pathname = NULL
398  如果非pathname
399  长字符串复制
400  pathname等于namebuf
403  返回:pathname
调用者
名称描述
ima_rdwr_violation_checkma_rdwr_violation_check* Only invalidate the PCR for measured files:* - Opening a file for write when already open for read,* results in a time of measure, time of use (ToMToU) error.* - Opening a file for read when already open for write,
process_measurement