Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:moyo_read_profile - Read profile table.*@head: Pointer to "struct tomoyo_io_buffer".* Returns nothing.

Proto:static void tomoyo_read_profile(struct tomoyo_io_buffer *head)

Type:void

Parameter:

TypeParameterName
struct tomoyo_io_buffer *head
747  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)
751  If eof Then Return
753  :
754  index = index
755  profile = Profile table. Memory is allocated as needed. [index]
757  Case step == 0
758  moyo_print_namespace - Print namespace header.*@head: Pointer to "struct tomoyo_io_buffer".* Returns nothing.
759  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.
761  step++
762  Break
763  Case step == 1
764  When index < Profile number is an integer between 0 and 255. cycle If Profile table. Memory is allocated as needed. [index] Then
767  Break
769  eof = true
770  Return
772  step++
773  Break
774  Case step == 2
777  comment = comment
780  moyo_print_namespace - Print namespace header.*@head: Pointer to "struct tomoyo_io_buffer".* Returns nothing.
781  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.
782  moyo_set_string - Queue string to "struct tomoyo_io_buffer" structure
783  moyo_set_lf - Put a line feed to "struct tomoyo_io_buffer" structure.*@head: Pointer to "struct tomoyo_io_buffer".* Returns nothing.
784  moyo_print_namespace - Print namespace header.*@head: Pointer to "struct tomoyo_io_buffer".* Returns nothing.
785  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.
786  When i < TOMOYO_MAX_PREF cycle 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.
790  moyo_set_string - Queue string to "struct tomoyo_io_buffer" structure
791  step++
793  Break
794  Case step == 3
796  moyo_print_namespace - Print namespace header.*@head: Pointer to "struct tomoyo_io_buffer".* Returns nothing.
797  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.
798  moyo_print_config - Print mode for specified functionality.*@head: Pointer to "struct tomoyo_io_buffer".*@config: Mode for that functionality.* Returns nothing.* Caller prints functionality's name.
799  bit = 0
800  step++
802  Break
803  Case step == 4
806  i = bit
807  config = config[i]
809  If config == TOMOYO_CONFIG_USE_DEFAULT Then Continue
822  bit++
823  Break
827  index++
828  step = 1
830  Break
832  If 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 Go to next