Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:moyo_write_unix_network - Write "struct tomoyo_unix_acl" list.*@param: Pointer to "struct tomoyo_acl_param".* Returns 0 on success, negative value otherwise.

Proto:int tomoyo_write_unix_network(struct tomoyo_acl_param *param)

Type:int

Parameter:

TypeParameterName
struct tomoyo_acl_param *param
329  struct tomoyo_unix_acl e = { One of values in "enum tomoyo_acl_entry_type_index". = TOMOYO_TYPE_UNIX_ACL}
332  protocol = tomoyo_read_token(param)
333  operation = tomoyo_read_token(param)
335  When protocol < TOMOYO checks only SOCK_STREAM, SOCK_DGRAM, SOCK_RAW, SOCK_SEQPACKET.* Therefore, we don't need SOCK_MAX. cycle If Not strcmp(protocol, String table for socket's protocols. [protocol]) Then
337  Break
338  When type < TOMOYO_MAX_NETWORK_OPERATION cycle If tomoyo_permstr(operation, String table for socket's operation. [type]) Then
340  Bitmask of values in "enum tomoyo_network_acl_index" |= 1 << type
341  If protocol == TOMOYO checks only SOCK_STREAM, SOCK_DGRAM, SOCK_RAW, SOCK_SEQPACKET.* Therefore, we don't need SOCK_MAX. || Not Bitmask of values in "enum tomoyo_network_acl_index" Then Return -EINVAL
343  If Not moyo_parse_name_union - Parse a tomoyo_name_union.*@param: Pointer to "struct tomoyo_acl_param".*@ptr: Pointer to "struct tomoyo_name_union".* Returns true on success, false otherwise. Then Return -EINVAL
345  error = moyo_update_domain - Update an entry for domain policy.*@new_entry: Pointer to "struct tomoyo_acl_info".*@size: Size of @new_entry in bytes.*@param: Pointer to "struct tomoyo_acl_param".*@check_duplicate: Callback function to find duplicated entry.
348  moyo_put_name_union - Drop reference on "struct tomoyo_name_union".*@ptr: Pointer to "struct tomoyo_name_union".* Returns nothing.
349  Return error