mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Add packet to check if remote is running as root.
This commit is contained in:
@@ -320,4 +320,17 @@ namespace DiscImageChef.Devices.Remote
|
||||
{
|
||||
public DicPacketHeader hdr;
|
||||
}
|
||||
|
||||
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi, Pack = 1)]
|
||||
public struct DicPacketCmdAmIRoot
|
||||
{
|
||||
public DicPacketHeader hdr;
|
||||
}
|
||||
|
||||
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi, Pack = 1)]
|
||||
public struct DicPacketResAmIRoot
|
||||
{
|
||||
public DicPacketHeader hdr;
|
||||
[MarshalAs(UnmanagedType.U4)] public bool am_i_root;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user