mirror of
https://github.com/volatilityfoundation/volatility
synced 2026-06-08 18:04:46 +00:00
Mac - fix p_gid error in proc overlay
This commit is contained in:
@@ -64,8 +64,19 @@ class VolatilityMacIntelValidAS(obj.VolatilityMagic):
|
||||
yield True
|
||||
else:
|
||||
yield False
|
||||
|
||||
class proc(obj.CType):
|
||||
@property
|
||||
def p_gid(self):
|
||||
cred = self.p_ucred
|
||||
|
||||
if hasattr(cred, "cr_posix"):
|
||||
ret = cred.cr_posix.cr_groups[0]
|
||||
else:
|
||||
ret = cred.cr_groups[0]
|
||||
|
||||
return ret
|
||||
|
||||
class proc(obj.CType):
|
||||
@property
|
||||
def p_uid(self):
|
||||
cred = self.p_ucred
|
||||
@@ -77,17 +88,6 @@ class proc(obj.CType):
|
||||
|
||||
return ret
|
||||
|
||||
@property
|
||||
def p_gid(self):
|
||||
cred = self.p_ucred
|
||||
|
||||
if hasattr(cred, "cr_posix"):
|
||||
ret = cred.cr_posix.cr_gid
|
||||
else:
|
||||
ret = cred.cr_gid
|
||||
|
||||
return ret
|
||||
|
||||
def get_process_address_space(self):
|
||||
task = obj.Object("task", offset=self.task, vm=self.obj_vm)
|
||||
cr3 = task.map.pmap.pm_cr3
|
||||
|
||||
Reference in New Issue
Block a user