Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

Proto:static bool tomoyo_flush(struct tomoyo_io_buffer *head)

Type:bool

Parameter:

TypeParameterName
struct tomoyo_io_buffer *head
215  When w_pos cycle
216  w = w[0]
217  len = strlen - Find the length of a string*@s: The string to be sized
219  If len Then
222  If Not len Then Return false
224  If copy_to_user(read_user_buf, w, len) Then Return false
227  read_user_buf += len
228  w += len
230  w[0] = w
231  If w Then Return false
234  If poll Then
235  If Not read_user_buf_avail || copy_to_user(read_user_buf, "", 1) Then Return false
239  read_user_buf++
241  w_pos--
242  When len < w_pos cycle w[len] = w[len + 1]
245  avail = 0
246  Return true
Caller
NameDescribe
tomoyo_set_stringmoyo_set_string - Queue string to "struct tomoyo_io_buffer" structure
tomoyo_read_profilemoyo_read_profile - Read profile table.*@head: Pointer to "struct tomoyo_io_buffer".* Returns nothing.
tomoyo_read_managermoyo_read_manager - Read manager policy.*@head: Pointer to "struct tomoyo_io_buffer".* Caller holds tomoyo_read_lock().
tomoyo_print_conditionmoyo_print_condition - Print condition part.*@head: Pointer to "struct tomoyo_io_buffer".*@cond: Pointer to "struct tomoyo_condition".* Returns true on success, false otherwise.
tomoyo_print_entrymoyo_print_entry - Print an ACL entry.*@head: Pointer to "struct tomoyo_io_buffer".*@acl: Pointer to an ACL entry.* Returns true on success, false otherwise.
tomoyo_read_domainmoyo_read_domain - Read domain policy.*@head: Pointer to "struct tomoyo_io_buffer".* Caller holds tomoyo_read_lock().
tomoyo_read_groupmoyo_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().
tomoyo_read_policymoyo_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().
tomoyo_read_controlmoyo_read_control - read() for /sys/kernel/security/tomoyo/ interface.*@head: Pointer to "struct tomoyo_io_buffer".*@buffer: Poiner to buffer to write to.*@buffer_len: Size of @buffer.* Returns bytes read on success, negative value otherwise.