| 函数逻辑报告 | 
| Source Code: security\tomoyo\domain.c | Create Date:2022-07-27 21:09:10 | 
| Last Modify:2022-05-23 20:14:46 | Copyright©Brick | 
| 首页 | 函数Tree | 
| 注解内核,赢得工具 | 下载SCCT | English | 
函数名称:moyo_assign_domain - Create a domain or a namespace.*@domainname: The name of domain.*@transit: True if transit to domain found or created.* Returns pointer to "struct tomoyo_domain_info" on success, NULL otherwise.* Caller holds tomoyo_read_lock().
函数原型:struct tomoyo_domain_info *tomoyo_assign_domain(const char *domainname, const bool transit)
返回类型:struct tomoyo_domain_info
参数:
| 类型 | 参数 | 名称 | 
|---|---|---|
| const char * | domainname | |
| const bool | transit | 
| 527 | struct tomoyo_domain_info e = {} | 
| 529 | bool created = false | 
| 531 | 如果entry则 | 
| 547 | 如果strlen - Find the length of a string*@s: The string to be sized大于等于TOMOYO_EXEC_TMPSIZE减10或非tomoyo_correct_domain(domainname)则返回:NULL | 
| 555 | 如果transit且moyo_namespace_jump - Check for namespace jump.*@domainname: Name of domain.* Returns true if namespace differs, false otherwise.则返回:NULL | 
| 558 | 如果非 Namespace for this domain. Never NULL. 则返回:NULL | 
| 565 | 如果transit则 | 
| 572 | 如果非 Name of this domain. Never NULL. 则返回:NULL | 
| 574 | 如果mutex_lock_interruptible( & tomoyo_policy_lock)则转到:out | 
| 577 | 如果非entry则 | 
| 586 | out : | 
| 589 | 如果created则 | 
| 605 | 返回:entry | 
| 名称 | 描述 | 
|---|---|
| tomoyo_find_next_domain | moyo_find_next_domain - Find a domain.*@bprm: Pointer to "struct linux_binprm".* Returns 0 on success, negative value otherwise.* Caller holds tomoyo_read_lock(). | 
| tomoyo_write_self | moyo_write_self - write() for /sys/kernel/security/tomoyo/self_domain interface | 
| tomoyo_write_domain | moyo_write_domain - Write domain 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 插件可实现:逻辑报告 代码生成和批量转换代码 |