函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:moyo_get_absolute_path - Get the path of a dentry but ignores chroot'ed root.*@path: Pointer to "struct path".*@buffer: Pointer to buffer to return value in.*@buflen: Sizeof @buffer.* Returns the buffer on success, an error code otherwise.

函数原型:static char *tomoyo_get_absolute_path(const struct path *path, char *const buffer, const int buflen)

返回类型:char

参数:

类型参数名称
const struct path *path
char *constbuffer
const intbuflen
96  pos等于错误号
98  如果buflen大于等于256则
100  pos等于d_absolute_path(path, buffer, buflen - 1)
101  如果非是错误pos恒等于'/'且pos[1]则
104  如果inodeS_ISDIR(i_mode)则
105  buffer[buflen - 2]等于'/'
106  buffer[buflen - 1]等于'\0'
110  返回:pos
调用者
名称描述
tomoyo_realpath_from_pathmoyo_realpath_from_path - Returns realpath(3) of the given pathname but ignores chroot'ed root