Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:moyo_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.

Proto:static bool tomoyo_check_inet_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
422  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)
424  size = If is_ipv6 Then 16 Else 4
426  If Not (Bitmask of values in "enum tomoyo_network_acl_index" & 1 << One of values in "enum tomoyo_network_acl_index". ) || Not moyo_compare_number_union - Check whether a value matches "struct tomoyo_number_union" or not.*@value: Number to check.*@ptr: Pointer to "struct tomoyo_number_union".* Returns true if @value matches @ptr, false otherwise. Then Return false
430  If Pointer to address group. Then Return 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".
434  Return Valid only if @group == NULL. == is_ipv6 && memcmp( & Big endian. [0], address, size) <= 0 && memcmp(address, & Big endian. [1], size) <= 0