Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

Proto:const char *tomoyo_get_exe(void)

Type:char

Parameter:Nothing

948  mm = mm
950  If Not mm Then Return 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  If Not exe_file Then Return NULL
956  cp = moyo_realpath_from_path - Returns realpath(3) of the given pathname but ignores chroot'ed root
957  fput(exe_file)
958  Return cp