mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-22 12:35:14 +00:00
Kernel: Use current EUID/EGID for LocalSocket prebind credentials
This commit is contained in:
parent
ca3489eec7
commit
d7345cf560
Notes:
sideshowbarker
2024-07-18 22:55:38 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/d7345cf5608
1 changed files with 2 additions and 2 deletions
|
@ -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]() {
|
||||
|
|
Loading…
Add table
Reference in a new issue