summaryrefslogtreecommitdiff
path: root/Kernel/Credentials.h
diff options
context:
space:
mode:
Diffstat (limited to 'Kernel/Credentials.h')
-rw-r--r--Kernel/Credentials.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/Kernel/Credentials.h b/Kernel/Credentials.h
index e951d57c21..25e002a25e 100644
--- a/Kernel/Credentials.h
+++ b/Kernel/Credentials.h
@@ -14,7 +14,7 @@ namespace Kernel {
class Credentials final : public AtomicRefCounted<Credentials> {
public:
- static ErrorOr<NonnullRefPtr<Credentials>> create(UserID uid, GroupID gid, UserID euid, GroupID egid, UserID suid, GroupID sgid, Span<GroupID const> extra_gids);
+ static ErrorOr<NonnullRefPtr<Credentials>> create(UserID uid, GroupID gid, UserID euid, GroupID egid, UserID suid, GroupID sgid, Span<GroupID const> extra_gids, SessionID sid, ProcessGroupID pgid);
~Credentials();
bool is_superuser() const { return euid() == 0; }
@@ -26,11 +26,13 @@ public:
UserID suid() const { return m_suid; }
GroupID sgid() const { return m_sgid; }
Span<GroupID const> extra_gids() const { return m_extra_gids.span(); }
+ SessionID sid() const { return m_sid; };
+ ProcessGroupID pgid() const { return m_pgid; }
bool in_group(GroupID) const;
private:
- Credentials(UserID uid, GroupID gid, UserID euid, GroupID egid, UserID suid, GroupID sgid, FixedArray<GroupID> extra_gids);
+ Credentials(UserID uid, GroupID gid, UserID euid, GroupID egid, UserID suid, GroupID sgid, FixedArray<GroupID> extra_gids, SessionID sid, ProcessGroupID pgid);
UserID m_uid;
GroupID m_gid;
@@ -39,6 +41,8 @@ private:
UserID m_suid;
GroupID m_sgid;
FixedArray<GroupID> m_extra_gids;
+ SessionID m_sid;
+ ProcessGroupID m_pgid;
};
}