Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\tomoyo\domain.c Create Date:2022-07-28 19:39:47
Last Modify:2022-05-23 20:14:46 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

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

Proto: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)

Type:bool

Parameter:

TypeParameterName
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  If rue or false or TOMOYO_GC_IN_PROGRESS || One of values in "enum tomoyo_transition_type". != type Then Continue
308  If Maybe NULL Then
310  If Maybe NULL != domainname Then Continue
312  Else
317  If strcmp(name, last_name) Then Continue
321  If 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. Then Continue
323  Return true
325  Return false
Caller
NameDescribe
tomoyo_transition_typemoyo_transition_type - Get domain transition type