函数逻辑报告 |
Source Code:security\tomoyo\realpath.c |
Create Date:2022-07-27 21:14:51 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:moyo_get_local_path - Get the path of a dentry.*@dentry: Pointer to "struct dentry".*@buffer: Pointer to buffer to return value in.*@buflen: Sizeof @buffer.* Returns the buffer on success, an error code otherwise.
函数原型:static char *tomoyo_get_local_path(struct dentry *dentry, char *const buffer, const int buflen)
返回类型:char
参数:
类型 | 参数 | 名称 |
---|---|---|
struct dentry * | dentry | |
char *const | buffer | |
const int | buflen |
161 | 如果s_magic恒等于PROC_SUPER_MAGIC且pos恒等于'/'则 |
163 | pid等于转换字符串为无符号整形 |
165 | 如果ep恒等于'/'且pid且pid恒等于task_tgid_nr_ns(当前进程, Filesystem private info )则 |
172 | 转到:prepend_filesystem_name |
175 | 如果非MAJOR( search index; _not_ kdev_t )则转到:prepend_filesystem_name |
184 | 如果非rename则转到:prepend_filesystem_name |
201 | 返回:pos |
204 | prepend_filesystem_name : |
215 | 返回:pos |
216 | out : |
217 | 返回:错误号 |
名称 | 描述 |
---|---|
tomoyo_realpath_from_path | moyo_realpath_from_path - Returns realpath(3) of the given pathname but ignores chroot'ed root |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |