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
Notes: sideshowbarker 2024-07-18 22:55:38 +09:00

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]() {