Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: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

Proto:const char *ima_d_path(const struct path *path, char **pathbuf, char *namebuf)

Type:char

Parameter:

TypeParameterName
const struct path *path
char **pathbuf
char *namebuf
386  char * pathname = NULL
388  pathbuf = __getname()
389  If pathbuf Then
390  pathname = d_absolute_path(path, * pathbuf, # chars in a path name including nul )
391  If IS_ERR(pathname) Then
392  __putname( * pathbuf)
393  * pathbuf = NULL
394  pathname = NULL
398  If Not pathname Then
399  Copy a NUL terminated string into a sized buffer
400  pathname = namebuf
403  Return pathname
Caller
NameDescribe
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