Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:moyo_read_domain - Read domain policy.*@head: Pointer to "struct tomoyo_io_buffer".* Caller holds tomoyo_read_lock().

Proto:static void tomoyo_read_domain(struct tomoyo_io_buffer *head)

Type:void

Parameter:

TypeParameterName
struct tomoyo_io_buffer *head
1620  If eof Then Return
1623  domain = 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.(domain, typeof( * domain), list)
1628  Case step == 0
1629  If Delete flag. && Not print_this_domain_only Then Continue
1633  moyo_set_string - Queue string to "struct tomoyo_io_buffer" structure
1634  moyo_set_lf - Put a line feed to "struct tomoyo_io_buffer" structure.*@head: Pointer to "struct tomoyo_io_buffer".* Returns nothing.
1635  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.
1637  When i < TOMOYO_MAX_DOMAIN_INFO_FLAGS cycle If flags[i] Then
1639  moyo_set_string - Queue string to "struct tomoyo_io_buffer" structure
1640  index = 0
1641  step++
1643  Case step == 1
1645  i = index++
1652  index = 0
1653  step++
1654  moyo_set_lf - Put a line feed to "struct tomoyo_io_buffer" structure.*@head: Pointer to "struct tomoyo_io_buffer".* Returns nothing.
1656  Case step == 2
1657  If Not 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. Then Return
1659  step++
1660  If Not moyo_set_lf - Put a line feed to "struct tomoyo_io_buffer" structure.*@head: Pointer to "struct tomoyo_io_buffer".* Returns nothing. Then Return
1663  Case step == 3
1664  step = 0
1665  If print_this_domain_only Then Go to done
1669  done :
1670  eof = true