summaryrefslogtreecommitdiffhomepage
path: root/dev/ZKA/HALKit
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-08-23 12:15:52 +0200
committerAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-08-23 12:15:52 +0200
commitf5ed9f8a41b760a659e23f8c2a72d1ca73f3b826 (patch)
tree87e8d51550a891f69cbad8d68c8cac96c49affed /dev/ZKA/HALKit
parent4cd60b0edc5dee45d6a0e31931f79dff4d611865 (diff)
[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 <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'dev/ZKA/HALKit')
-rw-r--r--dev/ZKA/HALKit/AMD64/HalKernelMain.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/dev/ZKA/HALKit/AMD64/HalKernelMain.cxx b/dev/ZKA/HALKit/AMD64/HalKernelMain.cxx
index 2e15bc99..c5548df7 100644
--- a/dev/ZKA/HALKit/AMD64/HalKernelMain.cxx
+++ b/dev/ZKA/HALKit/AMD64/HalKernelMain.cxx
@@ -228,11 +228,13 @@ Kernel::Void hal_real_init(Kernel::Void) noexcept
Kernel::NewFilesystemManager::Mount(fs);
#ifdef __DEBUG__
- const auto cPassword = "debug_usr";
+ const auto cPassword = "debug_usr";
Kernel::User user{Kernel::RingKind::kRingSuperUser, kSuperUser};
- Kernel::UserManager::The()->TryLogIn(user, cPassword);
+ user.TrySave(cPassword);
+
+ Kernel::UserManager::The()->TryLogIn(user);
#endif
Kernel::ke_stop(RUNTIME_CHECK_FAILED);