Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\tomoyo\domain.c Create Date:2022-07-28 19:39:55
Last Modify:2022-05-23 20:14:46 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:moyo_write_aggregator - Write "struct tomoyo_aggregator" list.*@param: Pointer to "struct tomoyo_acl_param".* Returns 0 on success, negative value otherwise.* Caller holds tomoyo_read_lock().

Proto:int tomoyo_write_aggregator(struct tomoyo_acl_param *param)

Type:int

Parameter:

TypeParameterName
struct tomoyo_acl_param *param
405  struct tomoyo_aggregator e = {}
406  error = If is_delete Then -ENOENT Else -ENOMEM
407  original_name = tomoyo_read_token(param)
408  aggregated_name = tomoyo_read_token(param)
410  If Not tomoyo_correct_word(original_name) || Not tomoyo_correct_path(aggregated_name) Then Return -EINVAL
413  original_name = tomoyo_get_name(original_name)
414  aggregated_name = tomoyo_get_name(aggregated_name)
415  If Not original_name || Not aggregated_name || = tomoyo_path_contains_pattern(name) Then Go to out
418  list = List of policy. [TOMOYO_ID_AGGREGATOR]
419  error = moyo_update_policy - Update an entry for exception 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.
421  out :
422  moyo_put_name - Drop reference on "struct tomoyo_name".*@name: Pointer to "struct tomoyo_path_info". Maybe NULL.* Returns nothing.
423  moyo_put_name - Drop reference on "struct tomoyo_name".*@name: Pointer to "struct tomoyo_path_info". Maybe NULL.* Returns nothing.
424  Return error
Caller
NameDescribe
tomoyo_write_exceptionmoyo_write_exception - Write exception policy.*@head: Pointer to "struct tomoyo_io_buffer".* Returns 0 on success, negative value otherwise.* Caller holds tomoyo_read_lock().