1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 15:57:45 +00:00

Kernel: Use current EUID/EGID for LocalSocket prebind credentials

This commit is contained in:
Andreas Kling 2021-01-23 16:44:16 +01:00
parent ca3489eec7
commit d7345cf560

View file

@ -65,8 +65,8 @@ LocalSocket::LocalSocket(int type)
all_sockets().resource().append(this);
auto current_process = Process::current();
m_prebind_uid = current_process->uid();
m_prebind_gid = current_process->gid();
m_prebind_uid = current_process->euid();
m_prebind_gid = current_process->egid();
m_prebind_mode = 0666;
m_for_client.set_unblock_callback([this]() {