浏览代码

Kernel: Move Credentials.{cpp,h} to the Security subdirectory

Liav A 2 年之前
父节点
当前提交
ee0ccdaebe
共有 5 个文件被更改,包括 4 次插入4 次删除
  1. 1 1
      Kernel/CMakeLists.txt
  2. 1 1
      Kernel/Security/Credentials.cpp
  3. 0 0
      Kernel/Security/Credentials.h
  4. 1 1
      Kernel/Tasks/Process.cpp
  5. 1 1
      Kernel/Tasks/Process.h

+ 1 - 1
Kernel/CMakeLists.txt

@@ -43,7 +43,6 @@ set(KERNEL_SOURCES
     CommandLine.cpp
     Coredump.cpp
     CrashHandler.cpp
-    Credentials.cpp
     Devices/AsyncDeviceRequest.cpp
     Devices/Audio/AC97.cpp
     Devices/Audio/Channel.cpp
@@ -263,6 +262,7 @@ set(KERNEL_SOURCES
     StdLib.cpp
     Syscall.cpp
     Security/AddressSanitizer.cpp
+    Security/Credentials.cpp
     Security/Random.cpp
     Security/Jail.cpp
     Security/UBSanitizer.cpp

+ 1 - 1
Kernel/Credentials.cpp → Kernel/Security/Credentials.cpp

@@ -6,7 +6,7 @@
 
 #include <AK/NonnullRefPtr.h>
 #include <AK/RefPtr.h>
-#include <Kernel/Credentials.h>
+#include <Kernel/Security/Credentials.h>
 
 namespace Kernel {
 

+ 0 - 0
Kernel/Credentials.h → Kernel/Security/Credentials.h


+ 1 - 1
Kernel/Tasks/Process.cpp

@@ -11,10 +11,10 @@
 #include <AK/Types.h>
 #include <Kernel/API/Syscall.h>
 #include <Kernel/Coredump.h>
-#include <Kernel/Credentials.h>
 #include <Kernel/Debug.h>
 #include <Kernel/Devices/DeviceManagement.h>
 #include <Kernel/InterruptDisabler.h>
+#include <Kernel/Security/Credentials.h>
 #ifdef ENABLE_KERNEL_COVERAGE_COLLECTION
 #    include <Kernel/Devices/KCOVDevice.h>
 #endif

+ 1 - 1
Kernel/Tasks/Process.h

@@ -18,7 +18,6 @@
 #include <Kernel/API/POSIX/sys/resource.h>
 #include <Kernel/API/Syscall.h>
 #include <Kernel/Assertions.h>
-#include <Kernel/Credentials.h>
 #include <Kernel/FileSystem/InodeMetadata.h>
 #include <Kernel/FileSystem/OpenFileDescription.h>
 #include <Kernel/FileSystem/UnveilNode.h>
@@ -29,6 +28,7 @@
 #include <Kernel/Locking/MutexProtected.h>
 #include <Kernel/Memory/AddressSpace.h>
 #include <Kernel/PerformanceEventBuffer.h>
+#include <Kernel/Security/Credentials.h>
 #include <Kernel/Security/Jail.h>
 #include <Kernel/StdLib.h>
 #include <Kernel/Tasks/AtomicEdgeAction.h>