函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\tomoyo\util.c Create Date:2022-07-27 21:16:29
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

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

函数原型:const struct tomoyo_path_info *tomoyo_get_domainname(struct tomoyo_acl_param *param)

返回类型:struct tomoyo_path_info

参数:

类型参数名称
struct tomoyo_acl_param *param
156  start等于data
157  pos等于start
159 pos循环
160  如果pos自加不等于' '或pos自加恒等于'/'则继续下一循环
162  pos减等于2
163  pos自加等于'\0'
164  退出
166  data等于pos
167  如果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.则返回: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  返回:NULL
调用者
名称描述
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.