函数逻辑报告 |
Source Code:security\tomoyo\file.c |
Create Date:2022-07-27 21:10:33 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:moyo_path_permission - Check permission for single path operation.*@r: Pointer to "struct tomoyo_request_info".*@operation: Type of operation.*@filename: Filename to check.* Returns 0 on success, negative value otherwise.* Caller holds tomoyo_read_lock().
函数原型:static int tomoyo_path_permission(struct tomoyo_request_info *r, u8 operation, const struct tomoyo_path_info *filename)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct tomoyo_request_info * | r | |
u8 | operation | |
const struct tomoyo_path_info * | filename |
579 | One of tomoyo_mode_index . 等于moyo_get_mode - Get MAC mode.*@ns: Pointer to "struct tomoyo_policy_namespace".*@profile: Profile number.*@index: Index number of functionality.* Returns mode. |
580 | 如果One of tomoyo_mode_index . 恒等于TOMOYO_CONFIG_DISABLED则返回:0 |
585 | 循环 |
589 | 返回:error |
名称 | 描述 |
---|---|
tomoyo_check_open_permission | 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. |
tomoyo_path_perm | moyo_path_perm - Check permission for "unlink", "rmdir", "truncate", "symlink", "append", "chroot" and "unmount".*@operation: Type of operation.*@path: Pointer to "struct path".*@target: Symlink's target if @operation is TOMOYO_TYPE_SYMLINK, |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |