mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-30 13:19:47 +00:00
Kernel: Strongly typed user & group ID's
Prior to this change, both uid_t and gid_t were typedef'ed to `u32`. This made it easy to use them interchangeably. Let's not allow that. This patch adds UserID and GroupID using the AK::DistinctNumeric mechanism we've already been employing for pid_t/ProcessID.
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
|
||||
namespace Kernel {
|
||||
|
||||
uid_t Process::ProcessProcFSTraits::owner_user() const
|
||||
UserID Process::ProcessProcFSTraits::owner_user() const
|
||||
{
|
||||
auto process = m_process.strong_ref();
|
||||
if (!process)
|
||||
@@ -18,7 +18,7 @@ uid_t Process::ProcessProcFSTraits::owner_user() const
|
||||
return process->uid();
|
||||
}
|
||||
|
||||
gid_t Process::ProcessProcFSTraits::owner_group() const
|
||||
GroupID Process::ProcessProcFSTraits::owner_group() const
|
||||
{
|
||||
auto process = m_process.strong_ref();
|
||||
if (!process)
|
||||
|
||||
Reference in New Issue
Block a user