mirror of
https://github.com/volatilityfoundation/volatility3.git
synced 2026-09-13 21:27:39 +02:00
linux: cred: add user identifiers to the cred object extension
This commit is contained in:
@@ -2079,13 +2079,40 @@ class cred(objects.StructType):
|
||||
return int(value)
|
||||
|
||||
@property
|
||||
def euid(self):
|
||||
def uid(self) -> int:
|
||||
"""Returns the real user ID
|
||||
|
||||
Returns:
|
||||
The real user ID value
|
||||
"""
|
||||
return self._get_cred_int_value("uid")
|
||||
|
||||
@property
|
||||
def gid(self) -> int:
|
||||
"""Returns the real user ID
|
||||
|
||||
Returns:
|
||||
The real user ID value
|
||||
"""
|
||||
return self._get_cred_int_value("gid")
|
||||
|
||||
@property
|
||||
def euid(self) -> int:
|
||||
"""Returns the effective user ID
|
||||
|
||||
Returns:
|
||||
The effective user ID value
|
||||
"""
|
||||
return self._get_cred_int_value("euid")
|
||||
|
||||
@property
|
||||
def egid(self) -> int:
|
||||
"""Returns the effective group ID
|
||||
|
||||
Returns:
|
||||
int: the effective user ID value
|
||||
"""
|
||||
return self._get_cred_int_value("euid")
|
||||
return self._get_cred_int_value("egid")
|
||||
|
||||
|
||||
class kernel_cap_struct(objects.StructType):
|
||||
|
||||
Reference in New Issue
Block a user