函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:moyo_scan_exec_realpath - Check "exec.realpath" parameter of "struct tomoyo_condition".*@file: Pointer to "struct file".*@ptr: Pointer to "struct tomoyo_name_union".*@match: True if "exec.realpath=", false if "exec.realpath!=".

函数原型:static bool tomoyo_scan_exec_realpath(struct file *file, const struct tomoyo_name_union *ptr, const bool match)

返回类型:bool

参数:

类型参数名称
struct file *file
const struct tomoyo_name_union *ptr
const boolmatch
241  如果非file则返回:false
243  name等于tomoyo_realpath_from_path( & f_path)
244  如果非name则返回:false
246  tomoyo_fill_path_info( & exe)
247  result等于tomoyo_compare_name_union( & exe, ptr)
248  释放内存
249  返回:result恒等于match
调用者
名称描述
tomoyo_conditionmoyo_condition - Check condition part.*@r: Pointer to "struct tomoyo_request_info".*@cond: Pointer to "struct tomoyo_condition". Maybe NULL.* Returns true on success, false otherwise.* Caller holds tomoyo_read_lock().