函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\tomoyo\common.c Create Date:2022-07-27 21:04:03
Last Modify:2020-03-18 09:15:18 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:moyo_update_manager_entry - Add a manager entry.*@manager: The path to manager or the domainnamme.*@is_delete: True if it is a delete request.* Returns 0 on success, negative value otherwise.* Caller holds tomoyo_read_lock().

函数原型:static int tomoyo_update_manager_entry(const char *manager, const bool is_delete)

返回类型:int

参数:

类型参数名称
const char *manager
const boolis_delete
864  struct tomoyo_manager e = {}
865  struct tomoyo_acl_param param = {is_delete = is_delete, list = & List of policy. [TOMOYO_ID_MANAGER], }
870  error等于如果is_delete则负ENOENT否则负ENOMEM
872  如果非tomoyo_correct_domain(manager)且非tomoyo_correct_word(manager)则返回:负EINVAL
875  A path to program or a domainname. 等于tomoyo_get_name(manager)
876  如果A path to program or a domainname.
877  error等于tomoyo_update_policy( & head, e的长度, & param, moyo_same_manager - Check for duplicated "struct tomoyo_manager" entry.*@a: Pointer to "struct tomoyo_acl_head".*@b: Pointer to "struct tomoyo_acl_head".* Returns true if @a == @b, false otherwise.)
879  moyo_put_name - Drop reference on "struct tomoyo_name".*@name: Pointer to "struct tomoyo_path_info". Maybe NULL.* Returns nothing.
881  返回:error
调用者
名称描述
tomoyo_write_managermoyo_write_manager - Write manager policy.*@head: Pointer to "struct tomoyo_io_buffer".* Returns 0 on success, negative value otherwise.* Caller holds tomoyo_read_lock().