函数逻辑报告 |
Source Code:security\tomoyo\mount.c |
Create Date:2022-07-27 21:13:12 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:moyo_mount_acl - Check permission for mount() operation.*@r: Pointer to "struct tomoyo_request_info".*@dev_name: Name of device file. Maybe NULL.*@dir: Pointer to "struct path".*@type: Name of filesystem type.*@flags: Mount options.
函数原型:static int tomoyo_mount_acl(struct tomoyo_request_info *r, const char *dev_name, const struct path *dir, const char *type, unsigned long flags)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct tomoyo_request_info * | r | |
const char * | dev_name | |
const struct path * | dir | |
const char * | type | |
unsigned long | flags |
82 | struct tomoyo_obj_info obj = {} |
84 | struct file_system_type * fstype = NULL |
85 | const char * requested_type = NULL |
86 | const char * requested_dir_name = NULL |
87 | const char * requested_dev_name = NULL |
91 | need_dev等于0 |
98 | 如果非requested_type则转到:out |
100 | name等于requested_type |
101 | tomoyo_fill_path_info( & rtype) |
105 | requested_dir_name等于moyo_realpath_from_path - Returns realpath(3) of the given pathname but ignores chroot'ed root |
106 | 如果非requested_dir_name则 |
110 | name等于requested_dir_name |
111 | tomoyo_fill_path_info( & rdir) |
123 | need_dev等于负1 |
124 | 否则 |
134 | 如果need_dev则 |
136 | 如果非dev_name或kern_path(dev_name, llow links at the end , & path)则 |
141 | requested_dev_name等于moyo_realpath_from_path - Returns realpath(3) of the given pathname but ignores chroot'ed root |
142 | 如果非requested_dev_name则 |
146 | 否则 |
151 | 如果非requested_dev_name则 |
156 | name等于requested_dev_name |
157 | tomoyo_fill_path_info( & rdev) |
164 | 循环 |
168 | out : |
169 | 释放内存 |
170 | 释放内存 |
171 | 如果fstype则put_filesystem(fstype) |
173 | 释放内存 |
177 | 返回:error |
名称 | 描述 |
---|---|
tomoyo_mount_permission | moyo_mount_permission - Check permission for mount() operation.*@dev_name: Name of device file. Maybe NULL.*@path: Pointer to "struct path".*@type: Name of filesystem type. Maybe NULL.*@flags: Mount options.*@data_page: Optional data. Maybe NULL. |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |