函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\tomoyo\common.h Create Date:2022-07-27 21:02:00
Last Modify:2020-03-18 09:12:16 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

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

函数原型:static inline bool tomoyo_pathcmp(const struct tomoyo_path_info *a, const struct tomoyo_path_info *b)

返回类型:bool

参数:

类型参数名称
const struct tomoyo_path_info *a
const struct tomoyo_path_info *b
1168  返回: = full_name_hash(name, strlen(name)) 不等于 = full_name_hash(name, strlen(name)) 字符串比较
调用者
名称描述
tomoyo_managermoyo_manager - Check whether the current process is a policy manager.* Returns true if the current process is permitted to modify policy* via /sys/kernel/security/tomoyo/ interface.* Caller holds tomoyo_read_lock().
tomoyo_delete_domainmoyo_delete_domain - Delete a domain.*@domainname: The name of domain.* Returns 0 on success, negative value otherwise.* Caller holds tomoyo_read_lock().
tomoyo_scan_transitionmoyo_scan_transition - Try to find specific domain transition type.*@list: Pointer to "struct list_head".*@domainname: The name of current domain.*@program: The name of requested program.*@last_name: The last component of @domainname.
tomoyo_check_task_aclmoyo_check_task_acl - Check permission for task operation.*@r: Pointer to "struct tomoyo_request_info".*@ptr: Pointer to "struct tomoyo_acl_info".* Returns true if granted, false otherwise.
tomoyo_find_domainmoyo_find_domain - Find a domain by the given name.*@domainname: The domainname to find.* Returns pointer to "struct tomoyo_domain_info" if found, NULL otherwise.* Caller holds tomoyo_read_lock().
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.