函数逻辑报告 |
Source Code:security\tomoyo\domain.c |
Create Date:2022-07-27 21:08:47 |
| Last Modify:2022-05-23 20:14:46 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:moyo_write_transition_control - Write "struct tomoyo_transition_control" list.*@param: Pointer to "struct tomoyo_acl_param".*@type: Type of this entry.* Returns 0 on success, negative value otherwise.
函数原型:int tomoyo_write_transition_control(struct tomoyo_acl_param *param, const u8 type)
返回类型:int
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct tomoyo_acl_param * | param | |
| const u8 | type |
| 245 | struct tomoyo_transition_control e = {One of values in "enum tomoyo_transition_type". = type} |
| 248 | domainname等于strstr - Find the first substring in a %NUL terminated string*@s1: The string to be searched*@s2: The string to search for |
| 250 | 如果domainname则 |
| 251 | domainname等于'\0' |
| 252 | domainname加等于6 |
| 255 | domainname等于program |
| 256 | program = NULL |
| 259 | 如果非tomoyo_correct_path(program)则返回:负EINVAL |
| 261 | Maybe NULL 等于tomoyo_get_name(program) |
| 262 | 如果非Maybe NULL 则转到:out |
| 265 | 如果domainname且字符串比较则 |
| 266 | 如果非tomoyo_correct_domain(domainname)则 |
| 267 | 如果非tomoyo_correct_path(domainname)则转到:out |
| 271 | Maybe NULL 等于tomoyo_get_name(domainname) |
| 272 | 如果非Maybe NULL 则转到:out |
| 278 | out : |
| 281 | 返回:error |
| 名称 | 描述 |
|---|---|
| tomoyo_write_exception | moyo_write_exception - Write exception policy.*@head: Pointer to "struct tomoyo_io_buffer".* Returns 0 on success, negative value otherwise.* Caller holds tomoyo_read_lock(). |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |