Description: syscall SysExecve 执行漏洞修复

IssueNo: https://gitee.com/openharmony/kernel_liteos_a/issues/IALXZ5
Feature Or Bugfix: Bugfix
Binary Source: No
Signed-off-by: hw_llm <liu.limin@huawei.com>
This commit is contained in:
hw_llm 2024-08-23 10:27:18 +08:00
parent b22a7c266e
commit a058649c93
1 changed files with 3 additions and 0 deletions

View File

@ -641,6 +641,9 @@ OUT:
#ifdef LOSCFG_KERNEL_DYNLOAD
int SysExecve(const char *fileName, char *const *argv, char *const *envp)
{
if (!LOS_IsUserAddress((vaddr_t)(UINTPTR)fileName)) {
return -EFAULT;
}
return LOS_DoExecveFile(fileName, argv, envp);
}
#endif