函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:moyo_write_exception - Write exception policy.*@head: Pointer to "struct tomoyo_io_buffer".* Returns 0 on success, negative value otherwise.* Caller holds tomoyo_read_lock().

函数原型:static int tomoyo_write_exception(struct tomoyo_io_buffer *head)

返回类型:int

参数:

类型参数名称
struct tomoyo_io_buffer *head
1758  is_delete等于is_delete
1759  struct tomoyo_acl_param param = {ns = ns, is_delete = is_delete, data = Buffer for writing. , }
1766  如果tomoyo_str_starts( & data, "aggregator ")则返回: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().
1768 i小于TOMOYO_MAX_TRANSITION_TYPE循环如果tomoyo_str_starts( & data, String table for domain transition control keywords. [i])则
1770  返回:moyo_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.
1771 i小于TOMOYO_MAX_GROUP循环如果tomoyo_str_starts( & data, String table for grouping keywords. [i])则
1773  返回:moyo_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.
1774  如果tomoyo_str_starts( & data, "acl_group ")则
1778  group等于转换字符串为无符号整形
1779  如果group小于Group number is an integer between 0 and 255. data自加恒等于' '则返回:moyo_write_domain2 - Write domain policy.*@ns: Pointer to "struct tomoyo_policy_namespace".*@list: Pointer to "struct list_head".*@data: Policy to be interpreted.*@is_delete: True if it is a delete request.* Returns 0 on success, negative value otherwise.
1784  返回:负EINVAL