函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

函数原型:bool tomoyo_path_matches_pattern(const struct tomoyo_path_info *filename, const struct tomoyo_path_info *pattern)

返回类型:bool

参数:

类型参数名称
const struct tomoyo_path_info *filename
const struct tomoyo_path_info *pattern
918  f等于name
919  p等于name
920  len等于 = tomoyo_const_part_length(name)
923  如果非 = tomoyo_path_contains_pattern(name) 则返回:非moyo_pathcmp - strcmp() for "struct tomoyo_path_info" structure.*@a: Pointer to "struct tomoyo_path_info".*@b: Pointer to "struct tomoyo_path_info".* Returns true if @a == @b, false otherwise.
926  如果 = tomoyo_strendswith(name, "/") 不等于 = tomoyo_strendswith(name, "/") 则返回:false
929  如果字符串指定长度比较则返回:false
931  f加等于len
932  p加等于len
933  返回: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.
调用者
名称描述
tomoyo_envpmoyo_envp - Check envp[] in "struct linux_binbrm".*@env_name: The name of environment variable.*@env_value: The value of environment variable.*@envc: Length of @envp.*@envp: Pointer to "struct tomoyo_envp".
tomoyo_find_next_domainmoyo_find_next_domain - Find a domain.*@bprm: Pointer to "struct linux_binprm".* Returns 0 on success, negative value otherwise.* Caller holds tomoyo_read_lock().
tomoyo_check_env_aclmoyo_check_env_acl - Check permission for environment variable's name.*@r: Pointer to "struct tomoyo_request_info".*@ptr: Pointer to "struct tomoyo_acl_info".* Returns true if granted, false otherwise.
tomoyo_compare_name_unionmoyo_compare_name_union - Check whether a name matches "struct tomoyo_name_union" or not.*@name: Pointer to "struct tomoyo_path_info".*@ptr: Pointer to "struct tomoyo_name_union".* Returns "struct tomoyo_path_info" if @name matches @ptr, NULL otherwise.
tomoyo_path_matches_groupmoyo_path_matches_group - Check whether the given pathname matches members of the given pathname group
tomoyo_argvmoyo_argv - Check argv[] in "struct linux_binbrm".*@index: Index number of @arg_ptr.*@arg_ptr: Contents of argv[@index].*@argc: Length of @argv.*@argv: Pointer to "struct tomoyo_argv".*@checked: Set to true if @argv[@index] was found.