Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\tomoyo\file.c Create Date:2022-07-28 19:41:39
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:moyo_execute_permission - Check permission for execute operation.*@r: Pointer to "struct tomoyo_request_info".*@filename: Filename to check.* Returns 0 on success, negative value otherwise.* Caller holds tomoyo_read_lock().

Proto:int tomoyo_execute_permission(struct tomoyo_request_info *r, const struct tomoyo_path_info *filename)

Type:int

Parameter:

TypeParameterName
struct tomoyo_request_info *r
const struct tomoyo_path_info *filename
610  type = TOMOYO_MAC_FILE_EXECUTE
611  One of tomoyo_mode_index . = moyo_get_mode - Get MAC mode.*@ns: Pointer to "struct tomoyo_policy_namespace".*@profile: Profile number.*@index: Index number of functionality.* Returns mode.
612  param_type = TOMOYO_TYPE_PATH_ACL
613  filename = filename
614  One of values in "enum tomoyo_path_acl_index". = TOMOYO_TYPE_EXECUTE
615  moyo_check_acl - Do permission check.*@r: Pointer to "struct tomoyo_request_info".*@check_entry: Callback function to check type specific parameters.* Returns 0 on success, negative value otherwise.* Caller holds tomoyo_read_lock().
616  transition = matched_acl && Maybe NULL. ? Maybe NULL. : NULL
618  If One of tomoyo_mode_index . != TOMOYO_CONFIG_DISABLED Then Return moyo_audit_path_log - Audit path request log.*@r: Pointer to "struct tomoyo_request_info".* Returns 0 on success, negative value otherwise.
620  Return 0
Caller
NameDescribe
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().