summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Kernel/Process.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/Kernel/Process.cpp b/Kernel/Process.cpp
index 35fa98af12..c4231201a9 100644
--- a/Kernel/Process.cpp
+++ b/Kernel/Process.cpp
@@ -4362,6 +4362,9 @@ int Process::sys$clock_settime(clockid_t clock_id, timespec* user_ts)
{
REQUIRE_PROMISE(stdio);
+ if (!is_superuser())
+ return -EPERM;
+
timespec ts;
if (!validate_read_and_copy_typed(&ts, user_ts))
return -EFAULT;