summaryrefslogtreecommitdiff
path: root/Source/Kernel
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Kernel')
-rw-r--r--Source/Kernel/TaskManager/Process.class.cpp3
-rw-r--r--Source/Kernel/UserManager/Usr.ns.h2
2 files changed, 4 insertions, 1 deletions
diff --git a/Source/Kernel/TaskManager/Process.class.cpp b/Source/Kernel/TaskManager/Process.class.cpp
index a19fc9e..5b777ed 100644
--- a/Source/Kernel/TaskManager/Process.class.cpp
+++ b/Source/Kernel/TaskManager/Process.class.cpp
@@ -4,6 +4,7 @@
#include <VFS/File.class.h>
#include <Linker/Binary.proto.h>
#include <Process.iface.h>
+#include <UserManager/Usr.ns.h>
namespace Mem {
extern Heap kheap;
@@ -176,7 +177,7 @@ u32int Process::allocPageSC(u32int pos) {
}
u32int Process::getCmdlineSC() {
- if (Task::currProcess()->getPid() == m_pid or Task::currProcess()->getPid() == 0) return m_cmdline.serialize();
+ if (Task::currProcess()->getUid() == m_uid or Usr::uid() == 0) return m_cmdline.serialize();
return (u32int) - 1;
}
diff --git a/Source/Kernel/UserManager/Usr.ns.h b/Source/Kernel/UserManager/Usr.ns.h
index 397b393..36ee2cb 100644
--- a/Source/Kernel/UserManager/Usr.ns.h
+++ b/Source/Kernel/UserManager/Usr.ns.h
@@ -21,3 +21,5 @@ namespace Usr {
};
#endif
+
+#include <UserManager/User.class.h>