函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\tomoyo\domain.c Create Date:2022-07-27 21:08:57
Last Modify:2022-05-23 20:14:46 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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().

函数原型:int tomoyo_write_aggregator(struct tomoyo_acl_param *param)

返回类型:int

参数:

类型参数名称
struct tomoyo_acl_param *param
405  struct tomoyo_aggregator e = {}
406  error等于如果is_delete则负ENOENT否则负ENOMEM
407  original_name等于tomoyo_read_token(param)
408  aggregated_name等于tomoyo_read_token(param)
410  如果非tomoyo_correct_word(original_name)或非tomoyo_correct_path(aggregated_name)则返回:负EINVAL
413  original_name等于tomoyo_get_name(original_name)
414  aggregated_name等于tomoyo_get_name(aggregated_name)
415  如果非original_name或非aggregated_name = tomoyo_path_contains_pattern(name) 则转到: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  返回:error
调用者
名称描述
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().