libc/exit: Purge calls to userspace API exit() from kernel

Remove calls to the userspace API exit() from the kernel. The problem
with doing such calls is that the exit functions are called with kernel
mode privileges which is a big security no-no.
This commit is contained in:
Ville Juven
2023-02-17 23:07:17 +08:00
committed by Xiang Xiao
parent 0f5b66c335
commit df1d7dd480
9 changed files with 16 additions and 12 deletions
+4
View File
@@ -31,6 +31,8 @@
#include <stdlib.h>
#include <unistd.h>
#ifndef __KERNEL__
/****************************************************************************
* Private Data
****************************************************************************/
@@ -148,3 +150,5 @@ void _Exit(int status)
{
_exit(status);
}
#endif /* __KERNEL__ */