Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

Proto:static bool tomoyo_read_policy(struct tomoyo_io_buffer *head, const int idx)

Type:bool

Parameter:

TypeParameterName
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  If rue or false or TOMOYO_GC_IN_PROGRESS Then Continue
1867  If Not 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. Then Return false
1870  Case 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  Break
1886  Case 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  Break
1900  Default
1901  Continue
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  Return true
Caller
NameDescribe
tomoyo_read_exceptionmoyo_read_exception - Read exception policy.*@head: Pointer to "struct tomoyo_io_buffer".* Caller holds tomoyo_read_lock().