函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:moyo_get_exe - Get tomoyo_realpath() of current process.* Returns the tomoyo_realpath() of current process on success, NULL otherwise.* This function uses kzalloc(), so the caller must call kfree()* if this function didn't return NULL.

函数原型:const char *tomoyo_get_exe(void)

返回类型:char

参数:

948  mm等于mm
950  如果非mm则返回:NULL
952  exe_file等于get_mm_exe_file - acquire a reference to the mm's executable file* Returns %NULL if mm has no associated executable file.* User must release file via fput().
953  如果非exe_file则返回:NULL
956  cp等于moyo_realpath_from_path - Returns realpath(3) of the given pathname but ignores chroot'ed root
957  fput(exe_file)
958  返回:cp