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:
@@ -219,6 +219,17 @@ namespace DiscImageChef.Devices
|
||||
public byte[] Cis { get; }
|
||||
|
||||
private readonly Remote.Remote _remote;
|
||||
private bool? _isRemoteAdmin;
|
||||
|
||||
public bool IsRemoteAdmin
|
||||
{
|
||||
get
|
||||
{
|
||||
if (_isRemoteAdmin is null) _isRemoteAdmin = _remote.IsRoot;
|
||||
|
||||
return _isRemoteAdmin == true;
|
||||
}
|
||||
}
|
||||
|
||||
public bool IsRemote => _remote != null;
|
||||
public string RemoteApplication => _remote?.ServerApplication;
|
||||
|
||||
Reference in New Issue
Block a user