Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\tomoyo\util.c Create Date:2022-07-28 19:47:28
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:moyo_get_domainname - Read a domainname from a line.*@param: Pointer to "struct tomoyo_acl_param".* Returns a domainname on success, NULL otherwise.

Proto:const struct tomoyo_path_info *tomoyo_get_domainname(struct tomoyo_acl_param *param)

Type:struct tomoyo_path_info

Parameter:

TypeParameterName
struct tomoyo_acl_param *param
156  start = data
157  pos = start
159  When pos cycle
160  If pos++ != ' ' || pos++ == '/' Then Continue
162  pos -= 2
163  pos++ = '\0'
164  Break
166  data = pos
167  If 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. Then Return moyo_get_name - Allocate permanent memory for string data.*@name: The string to store into the permernent memory.* Returns pointer to "struct tomoyo_path_info" on success, NULL otherwise.
169  Return NULL
Caller
NameDescribe
tomoyo_get_transit_preferencemoyo_get_transit_preference - Parse domain transition preference for execve().*@param: Pointer to "struct tomoyo_acl_param".*@e: Pointer to "struct tomoyo_condition".* Returns the condition string part.