Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: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!=".

Proto:static bool tomoyo_scan_exec_realpath(struct file *file, const struct tomoyo_name_union *ptr, const bool match)

Type:bool

Parameter:

TypeParameterName
struct file *file
const struct tomoyo_name_union *ptr
const boolmatch
241  If Not file Then Return false
243  name = tomoyo_realpath_from_path( & f_path)
244  If Not name Then Return false
246  tomoyo_fill_path_info( & exe)
247  result = tomoyo_compare_name_union( & exe, ptr)
248  kfree(name)
249  Return result == match
Caller
NameDescribe
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().