函数逻辑报告 | 
Source Code:security\tomoyo\file.c | 
Create Date:2022-07-27 21:10:52 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| 首页 | 函数Tree | 
| 注解内核,赢得工具 | 下载SCCT | English | 
函数名称:moyo_check_open_permission - Check permission for "read" and "write".*@domain: Pointer to "struct tomoyo_domain_info".*@path: Pointer to "struct path".*@flag: Flags for open().* Returns 0 on success, negative value otherwise.
函数原型:int tomoyo_check_open_permission(struct tomoyo_domain_info *domain, const struct path *path, const int flag)
返回类型:int
参数:
| 类型 | 参数 | 名称 | 
|---|---|---|
| struct tomoyo_domain_info * | domain | |
| const struct path * | path | |
| const int | flag | 
| 757 | error等于0 | 
| 760 | struct tomoyo_obj_info obj = { First pathname. Initialized with { NULL, NULL } if no path. = {mnt = mnt, dentry = dentry}, } | 
| 765 | name = NULL | 
| 767 | idx等于moyo_read_lock - Take lock for protecting policy.* Returns index number for tomoyo_read_unlock(). | 
| 775 | For holding parameters specific to operations which deal files.* NULL if not dealing files.等于obj | 
| 785 | out : | 
| 786 | 释放内存 | 
| 788 | 如果One of tomoyo_mode_index . 不等于TOMOYO_CONFIG_ENFORCING则error等于0 | 
| 790 | 返回:error | 
| 名称 | 描述 | 
|---|---|
| tomoyo_bprm_check_security | moyo_bprm_check_security - Target for security_bprm_check().*@bprm: Pointer to "struct linux_binprm".* Returns 0 on success, negative value otherwise. | 
| tomoyo_file_fcntl | moyo_file_fcntl - Target for security_file_fcntl().*@file: Pointer to "struct file".*@cmd: Command for fcntl().*@arg: Argument for @cmd.* Returns 0 on success, negative value otherwise. | 
| tomoyo_file_open | moyo_file_open - Target for security_file_open().*@f: Pointer to "struct file".*@cred: Pointer to "struct cred".* Returns 0 on success, negative value otherwise. | 
| 源代码转换工具 开放的插件接口  | X | 
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码  |