Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:moyo_parse_envp - Parse an envp[] condition part.*@left: Lefthand value.*@right: Righthand value.*@envp: Pointer to "struct tomoyo_envp".* Returns true on success, false otherwise.

Proto:static bool tomoyo_parse_envp(char *left, char *right, struct tomoyo_envp *envp)

Type:bool

Parameter:

TypeParameterName
char *left
char *right
struct tomoyo_envp *envp
323  cp = left + strlen - Find the length of a string*@s: The string to be sized - 1
325  If cp-- != ']' || cp != '"' Then Go to out
327  cp = '\0'
328  If Not tomoyo_correct_word(left) Then Go to out
330  name = tomoyo_get_name(left)
331  If Not name Then Go to out
333  If Not strcmp(right, "NULL") Then
334  value = NULL
335  Else
336  value = moyo_get_dqword - tomoyo_get_name() for a quoted string.*@start: String to save.* Returns pointer to "struct tomoyo_path_info" on success, NULL otherwise.
337  If Not value Then
339  Go to out
342  name = name
343  value = value
344  Return true
345  out :
346  Return false
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.