函数逻辑报告 |
Source Code:security\tomoyo\util.c |
Create Date:2022-07-27 21:16:55 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:moyo_correct_domain - Check whether the given domainname follows the naming rules.*@domainname: The domainname to check.* Returns true if @domainname follows the naming rules, false otherwise.
函数原型:bool tomoyo_correct_domain(const unsigned char *domainname)
返回类型:bool
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| const unsigned char * | domainname |
| 538 | 如果非domainname或非moyo_domain_def - Check whether the given token can be a domainname.*@buffer: The token to check.* Returns true if @buffer possibly be a domainname, false otherwise.则返回:false |
| 540 | domainname等于strchr - Find the first occurrence of the character c in the string s.*@s: the string to be searched*@c: the character to search for |
| 541 | 如果非domainname自加则返回:true |
| 543 | 当1循环 |
| 544 | cp等于strchr - Find the first occurrence of the character c in the string s.*@s: the string to be searched*@c: the character to search for |
| 551 | domainname等于cp加1 |
| 名称 | 描述 |
|---|---|
| tomoyo_write_transition_control | 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. |
| tomoyo_assign_domain | 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(). |
| tomoyo_write_self | moyo_write_self - write() for /sys/kernel/security/tomoyo/self_domain interface |
| tomoyo_get_domainname | moyo_get_domainname - Read a domainname from a line.*@param: Pointer to "struct tomoyo_acl_param".* Returns a domainname on success, NULL otherwise. |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |