Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\tomoyo\common.h Create Date:2022-07-28 19:32:38
Last Modify:2020-03-18 09:12:16 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

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.

Proto:static inline bool tomoyo_pathcmp(const struct tomoyo_path_info *a, const struct tomoyo_path_info *b)

Type:bool

Parameter:

TypeParameterName
const struct tomoyo_path_info *a
const struct tomoyo_path_info *b
1168  Return = full_name_hash(name, strlen(name)) != = full_name_hash(name, strlen(name)) || strcmp(name, name)
Caller
NameDescribe
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.