Skip to content

Commit

Permalink
Kernel: Use current EUID/EGID for LocalSocket prebind credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
awesomekling committed Jan 23, 2021
1 parent ca3489e commit d7345cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Kernel/Net/LocalSocket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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]() {
Expand Down

0 comments on commit d7345cf

Please sign in to comment.