函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\tomoyo\domain.c Create Date:2022-07-27 21:08:50
Last Modify:2022-05-23 20:14:46 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:moyo_scan_transition - Try to find specific domain transition type.*@list: Pointer to "struct list_head".*@domainname: The name of current domain.*@program: The name of requested program.*@last_name: The last component of @domainname.

函数原型:static inline bool tomoyo_scan_transition(const struct list_head *list, const struct tomoyo_path_info *domainname, const struct tomoyo_path_info *program, const char *last_name, const enum tomoyo_transition_type type)

返回类型:bool

参数:

类型参数名称
const struct list_head *list
const struct tomoyo_path_info *domainname
const struct tomoyo_path_info *program
const char *last_name
const enum tomoyo_transition_typetype
306  如果rue or false or TOMOYO_GC_IN_PROGRESS One of values in "enum tomoyo_transition_type". 不等于type则继续下一循环
308  如果Maybe NULL
310  如果Maybe NULL 不等于domainname则继续下一循环
312  否则
317  如果字符串比较则继续下一循环
321  如果Maybe NULL moyo_pathcmp - strcmp() for "struct tomoyo_path_info" structure.*@a: Pointer to "struct tomoyo_path_info".*@b: Pointer to "struct tomoyo_path_info".* Returns true if @a == @b, false otherwise.则继续下一循环
323  返回:true
325  返回:false
调用者
名称描述
tomoyo_transition_typemoyo_transition_type - Get domain transition type