From f5ed9f8a41b760a659e23f8c2a72d1ca73f3b826 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Fri, 23 Aug 2024 12:15:52 +0200 Subject: [WIP] Adding Security system DLL for handling user logins and logoffs. - Fixing local user API. This API is used by the objects in order to gain authorization over another object. - Refer to sec.dll for mutli-user experience. Signed-off-by: Amlal El Mahrouss --- dev/ZKA/KernelKit/FileManager.hxx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'dev/ZKA/KernelKit/FileManager.hxx') diff --git a/dev/ZKA/KernelKit/FileManager.hxx b/dev/ZKA/KernelKit/FileManager.hxx index 7f222c4a..3ac3fe3b 100644 --- a/dev/ZKA/KernelKit/FileManager.hxx +++ b/dev/ZKA/KernelKit/FileManager.hxx @@ -26,6 +26,7 @@ #include #include #include +#include #include /// @brief Filesystem manager, abstraction over mounted filesystem. @@ -362,14 +363,15 @@ namespace Kernel { static const auto cLength = 255; - struct StringMap final + /// @brief restrict information about the file descriptor. + struct RESTRICT_MAP final { Char fRestrict[cLength]; Int32 fMappedTo; }; const SizeT cRestrictCount = cRestrictMax; - const StringMap cRestrictList[] = { + const RESTRICT_MAP cRestrictList[] = { { .fRestrict = cRestrictR, .fMappedTo = eRestrictRead, @@ -408,6 +410,6 @@ namespace Kernel template FileStream::~FileStream() { - delete fFile; + mm_delete_ke_heap(fFile); } } // namespace Kernel -- cgit v1.2.3