summaryrefslogtreecommitdiffhomepage
path: root/dev/ZKA/HALKit
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-08-23 17:12:37 +0200
committerAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-08-23 17:13:00 +0200
commitc9fef8cfeae2047b66858385689d448a1ad5b8d0 (patch)
tree1d55c0af46da0bf0db9b32362b404bb6a51f27ef /dev/ZKA/HALKit
parent58ec3282634ccf75006043017ceacffed9a4533c (diff)
[FIX+IMP] 'User' login system in order to use the system according to
permissions. Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'dev/ZKA/HALKit')
-rw-r--r--dev/ZKA/HALKit/AMD64/HalKernelMain.cxx9
1 files changed, 2 insertions, 7 deletions
diff --git a/dev/ZKA/HALKit/AMD64/HalKernelMain.cxx b/dev/ZKA/HALKit/AMD64/HalKernelMain.cxx
index c5548df7..1c3d4187 100644
--- a/dev/ZKA/HALKit/AMD64/HalKernelMain.cxx
+++ b/dev/ZKA/HALKit/AMD64/HalKernelMain.cxx
@@ -227,15 +227,10 @@ Kernel::Void hal_real_init(Kernel::Void) noexcept
Kernel::NewFilesystemManager::Mount(fs);
-#ifdef __DEBUG__
const auto cPassword = "debug_usr";
- Kernel::User user{Kernel::RingKind::kRingSuperUser, kSuperUser};
-
- user.TrySave(cPassword);
-
- Kernel::UserManager::The()->TryLogIn(user);
-#endif
+ Kernel::User user_debug{Kernel::RingKind::kRingSuperUser, kSuperUser};
+ Kernel::UserManager::The()->TryLogIn(user_debug, cPassword, cPassword);
Kernel::ke_stop(RUNTIME_CHECK_FAILED);
}