mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 14:28:12 +00:00
Kernel: Use Process::credentials() and remove user ID/group ID helpers
Move away from using the group ID/user ID helpers in the process to allow for us to take advantage of the immutable credentials instead.
This commit is contained in:
parent
8026d8926c
commit
f86b671de2
27 changed files with 109 additions and 94 deletions
|
@ -42,8 +42,9 @@ SlavePTY::SlavePTY(MasterPTY& master, unsigned index)
|
|||
, m_index(index)
|
||||
{
|
||||
auto& process = Process::current();
|
||||
set_uid(process.uid());
|
||||
set_gid(process.gid());
|
||||
auto credentials = process.credentials();
|
||||
set_uid(credentials->uid());
|
||||
set_gid(credentials->gid());
|
||||
set_size(80, 25);
|
||||
|
||||
SlavePTY::all_instances().with([&](auto& list) { list.append(*this); });
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue