函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:moyo_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.

函数原型:static char *tomoyo_get_transit_preference(struct tomoyo_acl_param *param, struct tomoyo_condition *e)

返回类型:char

参数:

类型参数名称
struct tomoyo_acl_param *param
struct tomoyo_condition *e
457  pos等于data
460  如果pos恒等于'<'则
461  Maybe NULL. 等于tomoyo_get_domainname(param)
462  转到:done
465  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
467  如果cpcp等于'\0'
469  flag等于tomoyo_correct_path(pos)或非字符串比较或非字符串比较或非字符串比较或非字符串比较或非字符串比较
472  如果cpcp等于' '
475  如果非flag则返回:pos
477  Maybe NULL. 等于tomoyo_get_name(tomoyo_read_token(param))
478  done :
479  如果Maybe NULL. 则返回:data
485  返回:"/"
调用者
名称描述
tomoyo_get_conditionmoyo_get_condition - Parse condition part.*@param: Pointer to "struct tomoyo_acl_param".* Returns pointer to "struct tomoyo_condition" on success, NULL otherwise.