Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\tomoyo\common.c Create Date:2022-07-28 19:34:46
Last Modify:2020-03-18 09:15:18 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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().

Proto:static int tomoyo_update_manager_entry(const char *manager, const bool is_delete)

Type:int

Parameter:

TypeParameterName
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 = If is_delete Then -ENOENT Else -ENOMEM
872  If Not tomoyo_correct_domain(manager) && Not tomoyo_correct_word(manager) Then Return -EINVAL
875  A path to program or a domainname. = tomoyo_get_name(manager)
876  If A path to program or a domainname. Then
877  error = tomoyo_update_policy( & head, size of 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  Return error
Caller
NameDescribe
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().