函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\tomoyo\common.c Create Date:2022-07-27 21:04:39
Last Modify:2020-03-18 09:15:18 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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.

函数原型:static bool tomoyo_print_condition(struct tomoyo_io_buffer *head, const struct tomoyo_condition *cond)

返回类型:bool

参数:

类型参数名称
struct tomoyo_io_buffer *head
const struct tomoyo_condition *cond
1236  :cond_step恒等于0
1237  cond_index等于0
1238  cond_step自加
1239  如果Maybe NULL.
1244  :cond_step恒等于1
1246  condc等于Number of conditions in this struct.
1247  condp等于cond加1
1249  numbers_p等于condpcondc
1251  names_p等于numbers_pNumber of "struct tomoyo_number_union values".
1254  argv等于names_pNumber of "struct tomoyo_name_union names".
1256  envp等于argvNumber of "struct tomoyo_argv".
1260 skip小于cond_index循环
1264  condp自加
1266  :left恒等于TOMOYO_ARGV_ENTRY
1267  argv自加
1268  继续下一循环
1269  :left恒等于TOMOYO_ENVP_ENTRY
1270  envp自加
1271  继续下一循环
1272  :left恒等于TOMOYO_NUMBER_UNION
1273  numbers_p自加
1274  退出
1277  :right恒等于TOMOYO_NAME_UNION
1278  names_p自加
1279  退出
1280  :right恒等于TOMOYO_NUMBER_UNION
1281  numbers_p自加
1282  退出
1285 cond_index小于condc循环
1292  condp自加
1293  cond_index自加
1296  :left恒等于TOMOYO_ARGV_ENTRY
1305  :left恒等于TOMOYO_ENVP_ENTRY
1321  :left恒等于TOMOYO_NUMBER_UNION
1325  默认
1332  :right恒等于TOMOYO_NAME_UNION
1336  :right恒等于TOMOYO_NUMBER_UNION
1340  默认
1347  cond_step自加
1349  :cond_step恒等于2
1350  如果非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.退出
1352  cond_step自加
1354  :cond_step恒等于3
1355  如果One of values in "enum tomoyo_grant_log". 不等于TOMOYO_GRANTLOG_AUTOmoyo_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  返回:true
1362  返回:false
调用者
名称描述
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.