Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:moyo_print_condition - Print condition part.*@head: Pointer to "struct tomoyo_io_buffer".*@cond: Pointer to "struct tomoyo_condition".* Returns true on success, false otherwise.

Proto:static bool tomoyo_print_condition(struct tomoyo_io_buffer *head, const struct tomoyo_condition *cond)

Type:bool

Parameter:

TypeParameterName
struct tomoyo_io_buffer *head
const struct tomoyo_condition *cond
1236  Case cond_step == 0
1237  cond_index = 0
1238  cond_step++
1239  If Maybe NULL. Then
1244  Case cond_step == 1
1246  condc = Number of conditions in this struct.
1247  condp = cond + 1
1249  numbers_p = condp + condc
1251  names_p = numbers_p + Number of "struct tomoyo_number_union values".
1254  argv = names_p + Number of "struct tomoyo_name_union names".
1256  envp = argv + Number of "struct tomoyo_argv".
1260  When skip < cond_index cycle
1264  condp++
1266  Case left == TOMOYO_ARGV_ENTRY
1267  argv++
1268  Continue
1269  Case left == TOMOYO_ENVP_ENTRY
1270  envp++
1271  Continue
1272  Case left == TOMOYO_NUMBER_UNION
1273  numbers_p++
1274  Break
1277  Case right == TOMOYO_NAME_UNION
1278  names_p++
1279  Break
1280  Case right == TOMOYO_NUMBER_UNION
1281  numbers_p++
1282  Break
1285  When cond_index < condc cycle
1292  condp++
1293  cond_index++
1296  Case left == TOMOYO_ARGV_ENTRY
1305  Case left == TOMOYO_ENVP_ENTRY
1321  Case left == TOMOYO_NUMBER_UNION
1325  Default
1332  Case right == TOMOYO_NAME_UNION
1336  Case right == TOMOYO_NUMBER_UNION
1340  Default
1347  cond_step++
1349  Case cond_step == 2
1350  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 Break
1352  cond_step++
1354  Case cond_step == 3
1355  If One of values in "enum tomoyo_grant_log". != TOMOYO_GRANTLOG_AUTO Then 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.
1359  moyo_set_lf - Put a line feed to "struct tomoyo_io_buffer" structure.*@head: Pointer to "struct tomoyo_io_buffer".* Returns nothing.
1360  Return true
1362  Return false
Caller
NameDescribe
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.