Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\tomoyo\condition.c Create Date:2022-07-28 19:37:46
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:moyo_envp - Check envp[] in "struct linux_binbrm".*@env_name: The name of environment variable.*@env_value: The value of environment variable.*@envc: Length of @envp.*@envp: Pointer to "struct tomoyo_envp".

Proto:static bool tomoyo_envp(const char *env_name, const char *env_value, const int envc, const struct tomoyo_envp *envp, u8 *checked)

Type:bool

Parameter:

TypeParameterName
const char *env_name
const char *env_value
const intenvc
const struct tomoyo_envp *envp
u8 *checked
68  name = env_name
69  tomoyo_fill_path_info( & name)
70  name = env_value
71  tomoyo_fill_path_info( & value)
72  When i < envc cycle
75  If Not moyo_path_matches_pattern - Check whether the given filename matches the given pattern.*@filename: The filename to check.*@pattern: The pattern to compare.* Returns true if matches, false otherwise.* The following patterns are available.* \\ \ itself. Then Continue
77  checked = 1
78  If value Then
81  If is_not Then result = Not result
83  Else
84  result = true
85  If Not is_not Then result = Not result
88  If Not result Then Return false
91  Return true
Caller
NameDescribe
tomoyo_scan_bprmmoyo_scan_bprm - Scan "struct linux_binprm".*@ee: Pointer to "struct tomoyo_execve".*@argc: Length of @argc.*@argv: Pointer to "struct tomoyo_argv".*@envc: Length of @envp.*@envp: Poiner to "struct tomoyo_envp".* Returns true on success, false otherwise.