函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:moyo_address_matches_group - Check whether the given address matches members of the given address group.*@is_ipv6: True if @address is an IPv6 address.*@address: An IPv4 or IPv6 address.*@group: Pointer to "struct tomoyo_address_group".

函数原型:bool tomoyo_address_matches_group(const bool is_ipv6, const __be32 *address, const struct tomoyo_group *group)

返回类型:bool

参数:

类型参数名称
const boolis_ipv6
const __be32 *address
const struct tomoyo_group *group
193  bool matched = false
194  size等于如果is_ipv6则16否则4
198  如果rue or false or TOMOYO_GC_IN_PROGRESS 则继续下一循环
200  如果Valid only if @group == NULL. 不等于is_ipv6则继续下一循环
202  如果内存比较大于0或内存比较大于0则继续下一循环
205  matched = true
206  退出
208  返回:matched
调用者
名称描述
tomoyo_check_inet_aclmoyo_check_inet_acl - Check permission for inet domain socket operation.*@r: Pointer to "struct tomoyo_request_info".*@ptr: Pointer to "struct tomoyo_acl_info".* Returns true if granted, false otherwise.