summaryrefslogtreecommitdiff
path: root/Kernel/Process.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-05-08 22:54:17 +0200
committerAndreas Kling <kling@serenityos.org>2020-05-08 22:54:17 +0200
commit5bfd89329274d72d8106c9b73c64a1a7767e6b44 (patch)
tree736a26f23825ac975e016edbdb4b872f2171cac0 /Kernel/Process.cpp
parent1cddb1055f8e481eccc77a2ac0db4538e2812c1a (diff)
downloadserenity-5bfd89329274d72d8106c9b73c64a1a7767e6b44.zip
Kernel+Userland: Add "settime" pledge promise for setting system time
We now require the "settime" promise from pledged processes who want to change the system time.
Diffstat (limited to 'Kernel/Process.cpp')
-rw-r--r--Kernel/Process.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Process.cpp b/Kernel/Process.cpp
index c4231201a9..38cd9237c2 100644
--- a/Kernel/Process.cpp
+++ b/Kernel/Process.cpp
@@ -4360,7 +4360,7 @@ int Process::sys$clock_gettime(clockid_t clock_id, timespec* user_ts)
int Process::sys$clock_settime(clockid_t clock_id, timespec* user_ts)
{
- REQUIRE_PROMISE(stdio);
+ REQUIRE_PROMISE(settime);
if (!is_superuser())
return -EPERM;