函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:moyo_put_name - Drop reference on "struct tomoyo_name".*@name: Pointer to "struct tomoyo_path_info". Maybe NULL.* Returns nothing.

函数原型:static inline void tomoyo_put_name(const struct tomoyo_path_info *name)

返回类型:void

参数:

类型参数名称
const struct tomoyo_path_info *name
1180  如果name
1181  ptr等于container_of - cast a member of a structure out to the containing structure*@ptr: the pointer to the member.*@type: the type of the container struct this is embedded in.*@member: the name of the member within the struct.(name, typeof( * ptr), entry)
1183  atomic_dec( & users)
调用者
名称描述
tomoyo_write_profilemoyo_write_profile - Write profile table.*@head: Pointer to "struct tomoyo_io_buffer".* Returns 0 on success, negative value otherwise.
tomoyo_update_manager_entrymoyo_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().
tomoyo_write_taskmoyo_write_task - Update task related list.*@param: Pointer to "struct tomoyo_acl_param".* Returns 0 on success, negative value otherwise.* Caller holds tomoyo_read_lock().
tomoyo_parse_envpmoyo_parse_envp - Parse an envp[] condition part.*@left: Lefthand value.*@right: Righthand value.*@envp: Pointer to "struct tomoyo_envp".* Returns true on success, false otherwise.
tomoyo_get_conditionmoyo_get_condition - Parse condition part.*@param: Pointer to "struct tomoyo_acl_param".* Returns pointer to "struct tomoyo_condition" on success, NULL otherwise.
tomoyo_write_transition_controlmoyo_write_transition_control - Write "struct tomoyo_transition_control" list.*@param: Pointer to "struct tomoyo_acl_param".*@type: Type of this entry.* Returns 0 on success, negative value otherwise.
tomoyo_write_aggregatormoyo_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().
tomoyo_assign_domainmoyo_assign_domain - Create a domain or a namespace.*@domainname: The name of domain.*@transit: True if transit to domain found or created.* Returns pointer to "struct tomoyo_domain_info" on success, NULL otherwise.* Caller holds tomoyo_read_lock().
tomoyo_write_envmoyo_write_env - Write "struct tomoyo_env_acl" list.*@param: Pointer to "struct tomoyo_acl_param".* Returns 0 on success, negative value otherwise.* Caller holds tomoyo_read_lock().
tomoyo_put_name_unionmoyo_put_name_union - Drop reference on "struct tomoyo_name_union".*@ptr: Pointer to "struct tomoyo_name_union".* Returns nothing.
tomoyo_del_transition_controlmoyo_del_transition_control - Delete members in "struct tomoyo_transition_control".*@element: Pointer to "struct list_head".* Returns nothing.
tomoyo_del_aggregatormoyo_del_aggregator - Delete members in "struct tomoyo_aggregator".*@element: Pointer to "struct list_head".* Returns nothing.
tomoyo_del_managermoyo_del_manager - Delete members in "struct tomoyo_manager".*@element: Pointer to "struct list_head".* Returns nothing.
tomoyo_del_aclmoyo_del_acl - Delete members in "struct tomoyo_acl_info".*@element: Pointer to "struct list_head".* Returns nothing.
tomoyo_del_domainmoyo_del_domain - Delete members in "struct tomoyo_domain_info".*@element: Pointer to "struct list_head".* Returns nothing.* Caller holds tomoyo_policy_lock mutex.
tomoyo_del_conditionmoyo_del_condition - Delete members in "struct tomoyo_condition".*@element: Pointer to "struct list_head".* Returns nothing.
tomoyo_del_path_groupmoyo_del_path_group - Delete members in "struct tomoyo_path_group".*@element: Pointer to "struct list_head".* Returns nothing.
tomoyo_del_groupmoyo_del_group - Delete "struct tomoyo_group".*@element: Pointer to "struct list_head".* Returns nothing.
tomoyo_write_groupmoyo_write_group - Write "struct tomoyo_path_group"/"struct tomoyo_number_group"/"struct tomoyo_address_group" list.*@param: Pointer to "struct tomoyo_acl_param".*@type: Type of this group.* Returns 0 on success, negative value otherwise.
tomoyo_get_groupmoyo_get_group - Allocate memory for "struct tomoyo_path_group"/"struct tomoyo_number_group".*@param: Pointer to "struct tomoyo_acl_param".*@idx: Index number.* Returns pointer to "struct tomoyo_group" on success, NULL otherwise.