tgstation-server 6.12.0
The /tg/station 13 server suite
Loading...
Searching...
No Matches
PosixSystemIdentity.cs
Go to the documentation of this file.
1using System;
2using System.Threading;
3using System.Threading.Tasks;
4
5using Mono.Unix.Native;
6
8{
13 {
15 public bool IsSuperUser => Syscall.getuid() == 0;
16
18 public string Uid => throw new NotImplementedException();
19
21 public string Username => throw new NotImplementedException();
22
24 public bool CanCreateSymlinks => true;
25
27 public ISystemIdentity Clone() => throw new NotImplementedException();
28
30 public void Dispose()
31 {
32 }
33
35 public Task RunImpersonated(Action action, CancellationToken cancellationToken) => throw new NotSupportedException();
36 }
37}
string Uid
A unique identifier for the user.
bool IsSuperUser
Is this identity a SuperUser for the OS. See Administrator on Windows or root on Linux.
ISystemIdentity Clone()
Clone the ISystemIdentity creating another copy that must have IDisposable.Dispose called on it....
bool CanCreateSymlinks
If this system identity has permissions to create symlinks.
Task RunImpersonated(Action action, CancellationToken cancellationToken)
Runs a given action in the context of the ISystemIdentity.A Task representing the running operation.
Represents a user on the current global::System.Runtime.InteropServices.OSPlatform.