函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

函数原型:static bool tomoyo_parse_envp(char *left, char *right, struct tomoyo_envp *envp)

返回类型:bool

参数:

类型参数名称
char *left
char *right
struct tomoyo_envp *envp
323  cp等于leftstrlen - Find the length of a string*@s: The string to be sized减1
325  如果cp自减不等于']'或cp不等于'"'则转到:out
327  cp等于'\0'
328  如果非tomoyo_correct_word(left)则转到:out
330  name等于tomoyo_get_name(left)
331  如果非name则转到:out
333  如果非字符串比较
334  value = NULL
335  否则
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  如果非value
339  转到:out
342  name等于name
343  value等于value
344  返回:true
345  out :
346  返回:false
调用者
名称描述
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.