Function report |
Source Code:security\tomoyo\util.c |
Create Date:2022-07-28 19:47:52 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name: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.
Proto:bool tomoyo_correct_domain(const unsigned char *domainname)
Type:bool
Parameter:
Type | Parameter | Name |
---|---|---|
const unsigned char * | domainname |
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 | If Not domainname ++ Then Return true |
543 | When 1 cycle |
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 |
546 | If Not cp Then Break |
551 | domainname = cp + 1 |
Name | Describe |
---|---|
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. |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |