summaryrefslogtreecommitdiff
path: root/Kernel/Net
diff options
context:
space:
mode:
authorJames Bellamy <james.bellamy99@gmail.com>2022-08-21 12:40:19 +0100
committerAndreas Kling <kling@serenityos.org>2022-08-21 14:55:01 +0200
commit2686640baf76cd3bbeca1743177a8b284a9fa327 (patch)
treec9c9c0ae31a22480a2ce9bce9949509f48d64572 /Kernel/Net
parent386642ffcf556998b994cfb6fef29969afa5abd7 (diff)
downloadserenity-2686640baf76cd3bbeca1743177a8b284a9fa327.zip
Kernel: Use credentials object in LocalSocket constructor
Diffstat (limited to 'Kernel/Net')
-rw-r--r--Kernel/Net/LocalSocket.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/Kernel/Net/LocalSocket.cpp b/Kernel/Net/LocalSocket.cpp
index 67df21c712..eaf23cc66b 100644
--- a/Kernel/Net/LocalSocket.cpp
+++ b/Kernel/Net/LocalSocket.cpp
@@ -73,8 +73,9 @@ LocalSocket::LocalSocket(int type, NonnullOwnPtr<DoubleBuffer> client_buffer, No
, m_for_server(move(server_buffer))
{
auto& current_process = Process::current();
- m_prebind_uid = current_process.euid();
- m_prebind_gid = current_process.egid();
+ auto current_process_credentials = current_process.credentials();
+ m_prebind_uid = current_process_credentials->euid();
+ m_prebind_gid = current_process_credentials->egid();
m_prebind_mode = 0666;
m_for_client->set_unblock_callback([this]() {