Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: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.

Proto:static char *tomoyo_get_transit_preference(struct tomoyo_acl_param *param, struct tomoyo_condition *e)

Type:char

Parameter:

TypeParameterName
struct tomoyo_acl_param *param
struct tomoyo_condition *e
457  pos = data
460  If pos == '<' Then
461  Maybe NULL. = tomoyo_get_domainname(param)
462  Go to 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  If cp Then cp = '\0'
469  flag = tomoyo_correct_path(pos) || Not strcmp(pos, "keep") || Not strcmp(pos, "initialize") || Not strcmp(pos, "reset") || Not strcmp(pos, "child") || Not strcmp(pos, "parent")
472  If cp Then cp = ' '
475  If Not flag Then Return pos
477  Maybe NULL. = tomoyo_get_name(tomoyo_read_token(param))
478  done :
479  If Maybe NULL. Then Return data
485  Return "/"
Caller
NameDescribe
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.