函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:moyo_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().

函数原型:static bool tomoyo_read_policy(struct tomoyo_io_buffer *head, const int idx)

返回类型:bool

参数:

类型参数名称
struct tomoyo_io_buffer *head
const intidx
1858  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)
1860  list等于 List of policy. [idx]
1863  acl等于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.(acl, typeof( * acl), list)
1865  如果rue or false or TOMOYO_GC_IN_PROGRESS 则继续下一循环
1867  如果非moyo_flush - Flush queued string to userspace's buffer.*@head: Pointer to "struct tomoyo_io_buffer".* Returns true if all data was flushed, false otherwise.则返回:false
1870  :idx恒等于TOMOYO_ID_TRANSITION_CONTROL
1872  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.(acl, typeof( * ptr), head)
1875  moyo_print_namespace - Print namespace header.*@head: Pointer to "struct tomoyo_io_buffer".* Returns nothing.
1876  moyo_set_string - Queue string to "struct tomoyo_io_buffer" structure
1878  moyo_set_string - Queue string to "struct tomoyo_io_buffer" structure
1880  moyo_set_string - Queue string to "struct tomoyo_io_buffer" structure
1881  moyo_set_string - Queue string to "struct tomoyo_io_buffer" structure
1885  退出
1886  :idx恒等于TOMOYO_ID_AGGREGATOR
1888  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.(acl, typeof( * ptr), head)
1891  moyo_print_namespace - Print namespace header.*@head: Pointer to "struct tomoyo_io_buffer".* Returns nothing.
1892  moyo_set_string - Queue string to "struct tomoyo_io_buffer" structure
1893  moyo_set_string - Queue string to "struct tomoyo_io_buffer" structure
1895  moyo_set_space - Put a space to "struct tomoyo_io_buffer" structure.*@head: Pointer to "struct tomoyo_io_buffer".* Returns nothing.
1896  moyo_set_string - Queue string to "struct tomoyo_io_buffer" structure
1899  退出
1900  默认
1901  继续下一循环
1903  moyo_set_lf - Put a line feed to "struct tomoyo_io_buffer" structure.*@head: Pointer to "struct tomoyo_io_buffer".* Returns nothing.
1905  acl = NULL
1906  返回:true
调用者
名称描述
tomoyo_read_exceptionmoyo_read_exception - Read exception policy.*@head: Pointer to "struct tomoyo_io_buffer".* Caller holds tomoyo_read_lock().