函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:moyo_transition_type - Get domain transition type

函数原型:static enum tomoyo_transition_type tomoyo_transition_type(const struct tomoyo_policy_namespace *ns, const struct tomoyo_path_info *domainname, const struct tomoyo_path_info *program)

返回类型:enum tomoyo_transition_type

参数:

类型参数名称
const struct tomoyo_policy_namespace *ns
const struct tomoyo_path_info *domainname
const struct tomoyo_path_info *program
348  last_name等于moyo_last_word - Get last component of a domainname.*@name: Domainname to check.* Returns the last word of @domainname.
349  type等于TOMOYO_TRANSITION_CONTROL_NO_RESET
351 type小于TOMOYO_MAX_TRANSITION_TYPE循环
352  list等于 List of policy. [TOMOYO_ID_TRANSITION_CONTROL]
357  type自加
358  继续下一循环
360  如果type不等于TOMOYO_TRANSITION_CONTROL_NO_RESETtype不等于TOMOYO_TRANSITION_CONTROL_NO_INITIALIZE退出
368  type自加
369  type自加
371  返回:type
调用者
名称描述
tomoyo_find_next_domainmoyo_find_next_domain - Find a domain.*@bprm: Pointer to "struct linux_binprm".* Returns 0 on success, negative value otherwise.* Caller holds tomoyo_read_lock().