函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:moyo_path_matches_pattern2 - Do pathname pattern matching.*@f: The start of string to check.*@p: The start of pattern to compare.* Returns true if @f matches @p, false otherwise.

函数原型:static bool tomoyo_path_matches_pattern2(const char *f, const char *p)

返回类型:bool

参数:

类型参数名称
const char *f
const char *p
837 fp循环
838  f_delimiter等于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
839  如果非f_delimiterf_delimiter等于fstrlen - Find the length of a string*@s: The string to be sized
841  p_delimiter等于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
842  如果非p_delimiterp_delimiter等于pstrlen - Find the length of a string*@s: The string to be sized
844  如果p恒等于'\\'且*p加1的和恒等于'{'则转到:recursive
846  如果非moyo_file_matches_pattern - Pattern matching without '/' character.*@filename: The start of string to check.*@filename_end: The end of string to check.*@pattern: The start of pattern to compare.*@pattern_end: The end of pattern to compare.则返回:false
849  f等于f_delimiter
850  如果ff自加
852  p等于p_delimiter
853  如果pp自加
857 p恒等于'\\'且*p加1的和恒等于'*'或*p加1的和恒等于'@'的值循环
859  p加等于2
860  返回:非f且非p
861  recursive :
868  如果*p减1的差不等于'/'或p_delimiter小于等于p加3或p_delimiter不等于'/'或*p_delimiter减1的差不等于'}'或*p_delimiter减2的差不等于'\\'则返回:false
871  循环
873  如果非moyo_file_matches_pattern - Pattern matching without '/' character.*@filename: The start of string to check.*@filename_end: The end of string to check.*@pattern: The start of pattern to compare.*@pattern_end: The end of pattern to compare.退出
877  f等于f_delimiter
878  如果非f退出
880  f自加
882  如果moyo_path_matches_pattern2 - Do pathname pattern matching.*@f: The start of string to check.*@p: The start of pattern to compare.* Returns true if @f matches @p, false otherwise.则返回:true
884  f_delimiter等于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
885 f_delimiter循环
886  返回:false
调用者
名称描述
tomoyo_path_matches_pattern2moyo_path_matches_pattern2 - Do pathname pattern matching.*@f: The start of string to check.*@p: The start of pattern to compare.* Returns true if @f matches @p, false otherwise.
tomoyo_path_matches_patternmoyo_path_matches_pattern - Check whether the given filename matches the given pattern.*@filename: The filename to check.*@pattern: The pattern to compare.* Returns true if matches, false otherwise.* The following patterns are available.* \\ \ itself.