函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:moyo_read_exception - Read exception policy.*@head: Pointer to "struct tomoyo_io_buffer".* Caller holds tomoyo_read_lock().

函数原型:static void tomoyo_read_exception(struct tomoyo_io_buffer *head)

返回类型:void

参数:

类型参数名称
struct tomoyo_io_buffer *head
1918  ns等于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.(ns, typeof( * ns), namespace_list)
1921  如果eof则返回
1923 step小于TOMOYO_MAX_POLICYmoyo_read_policy - Read "struct tomoyo_..._entry" list.*@head: Pointer to "struct tomoyo_io_buffer".*@idx: Index number.* Returns true on success, false otherwise.* Caller holds tomoyo_read_lock().循环
1925  step自加
1926  如果step小于TOMOYO_MAX_POLICY则返回
1928 step小于TOMOYO_MAX_POLICYTOMOYO_MAX_GROUPmoyo_read_group - Read "struct tomoyo_path_group"/"struct tomoyo_number_group"/"struct tomoyo_address_group" list.*@head: Pointer to "struct tomoyo_io_buffer".*@idx: Index number.* Returns true on success, false otherwise.* Caller holds tomoyo_read_lock().循环
1930  step自加
1931  如果step小于TOMOYO_MAX_POLICYTOMOYO_MAX_GROUP则返回
1933 step小于TOMOYO_MAX_POLICYTOMOYO_MAX_GROUPGroup number is an integer between 0 and 255. 循环
1935  acl_group_index等于stepTOMOYO_MAX_POLICYTOMOYO_MAX_GROUP
1937  如果非moyo_read_domain2 - Read domain policy.*@head: Pointer to "struct tomoyo_io_buffer".*@list: Pointer to "struct list_head".* Caller holds tomoyo_read_lock().* Returns true on success, false otherwise.则返回
1940  step自加
1942  eof = true