From ce98400f8a9ebd4e62e76b9e292b7598d0d66cc0 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Fri, 2 Apr 2021 23:26:28 +0200 Subject: Added kernel section clear/protect after init This is a huge security improvement as it prevents potential exploits of using or modifying internal kernel functions or data. --- libs/libc/inc/sys.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libs/libc/inc/sys.h') diff --git a/libs/libc/inc/sys.h b/libs/libc/inc/sys.h index 81de724..b435899 100644 --- a/libs/libc/inc/sys.h +++ b/libs/libc/inc/sys.h @@ -66,7 +66,7 @@ struct stat { */ void loop(void); -void exit(s32 status); +void exit(s32 status) NORETURN; res read(const char *path, void *buf, u32 offset, u32 count) NONNULL; res write(const char *path, const void *buf, u32 offset, u32 count) NONNULL; res ioctl(const char *path, ...) NONNULL; -- cgit v1.2.3