Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

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

Type:bool

Parameter:

TypeParameterName
struct tomoyo_io_buffer *head
const intidx
1799  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)
1801  list = List of "struct tomoyo_group". [idx]
1804  group = list_entry - get the struct for this entry*@ptr: the &struct list_head pointer.*@type: the type of the struct this is embedded in.*@member: the name of the list_head within the struct.(group, typeof( * group), List for telling GC not to kfree() elements. )
1808  ptr = list_entry - get the struct for this entry*@ptr: the &struct list_head pointer.*@type: the type of the struct this is embedded in.*@member: the name of the list_head within the struct.(acl, typeof( * ptr), list)
1811  If rue or false or TOMOYO_GC_IN_PROGRESS Then Continue
1813  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
1815  moyo_print_namespace - Print namespace header.*@head: Pointer to "struct tomoyo_io_buffer".* Returns nothing.
1816  moyo_set_string - Queue string to "struct tomoyo_io_buffer" structure
1817  moyo_set_string - Queue string to "struct tomoyo_io_buffer" structure
1818  If idx == TOMOYO_PATH_GROUP Then
1819  moyo_set_space - Put a space to "struct tomoyo_io_buffer" structure.*@head: Pointer to "struct tomoyo_io_buffer".* Returns nothing.
1820  moyo_set_string - Queue string to "struct tomoyo_io_buffer" structure
1823  Else if idx == TOMOYO_NUMBER_GROUP Then
1824  moyo_print_number_union - Print a tomoyo_number_union.*@head: Pointer to "struct tomoyo_io_buffer".*@ptr: Pointer to "struct tomoyo_number_union".* Returns nothing.
1828  Else if idx == TOMOYO_ADDRESS_GROUP Then
1830  member = 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.(ptr, typeof( * member), head)
1834  tomoyo_print_ip(buffer, size of buffer , & Structure for holding an IP address. )
1836  moyo_io_printf - printf() to "struct tomoyo_io_buffer" structure.*@head: Pointer to "struct tomoyo_io_buffer".*@fmt: The printf()'s format string, followed by parameters.
1838  moyo_set_lf - Put a line feed to "struct tomoyo_io_buffer" structure.*@head: Pointer to "struct tomoyo_io_buffer".* Returns nothing.
1840  acl = NULL
1842  group = NULL
1843  Return true
Caller
NameDescribe
tomoyo_read_exceptionmoyo_read_exception - Read exception policy.*@head: Pointer to "struct tomoyo_io_buffer".* Caller holds tomoyo_read_lock().