Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:moyo_audit_inet_log - Audit INET network log.*@r: Pointer to "struct tomoyo_request_info".* Returns 0 on success, negative value otherwise.

Proto:static int tomoyo_audit_inet_log(struct tomoyo_request_info *r)

Type:int

Parameter:

TypeParameterName
struct tomoyo_request_info *r
383  address = address
385  If is_ipv6 Then moyo_print_ipv6 - Print an IPv6 address.*@buffer: Buffer to write to.*@buffer_len: Size of @buffer.*@min_ip: Pointer to "struct in6_addr".*@max_ip: Pointer to "struct in6_addr".* Returns nothing.
388  Else moyo_print_ipv4 - Print an IPv4 address.*@buffer: Buffer to write to.*@buffer_len: Size of @buffer.*@min_ip: Pointer to __be32.*@max_ip: Pointer to __be32.* Returns nothing.
390  len = strlen - Find the length of a string*@s: The string to be sized
391  snprintf - Format a string and place it in a buffer*@buf: The buffer to place the result into*@size: The size of the buffer, including the trailing null space*@fmt: The format string to use*@
393  Return moyo_audit_net_log - Audit network log.*@r: Pointer to "struct tomoyo_request_info".*@family: Name of socket family ("inet" or "unix").*@protocol: Name of protocol in @family.*@operation: Name of socket operation.*@address: Name of address.
Caller
NameDescribe
tomoyo_inet_entrymoyo_inet_entry - Check permission for INET network operation.*@address: Pointer to "struct tomoyo_addr_info".* Returns 0 on success, negative value otherwise.