Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:moyo_check_path_acl - Check permission for path operation

Proto:static bool tomoyo_check_path_acl(struct tomoyo_request_info *r, const struct tomoyo_acl_info *ptr)

Type:bool

Parameter:

TypeParameterName
struct tomoyo_request_info *r
const struct tomoyo_acl_info *ptr
255  acl = container_of - cast a member of a structure out to the containing structure*@ptr: the pointer to the member.*@type: the type of the container struct this is embedded in.*@member: the name of the member within the struct.(ptr, typeof( * acl), head)
258  If Bitmask of values in "enum tomoyo_path_acl_index". & 1 << One of values in "enum tomoyo_path_acl_index". Then
259  For using wildcards at tomoyo_find_next_domain(). = moyo_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.
262  Return For using wildcards at tomoyo_find_next_domain(). != NULL
264  Return false