Table of Contents

Class ProcessContainerPermissions

Namespace
Utils.Reflection.ProcessIsolation
Assembly
Utils.Reflection.dll

Represents coarse-grained permissions for child processes started through a process container. Instances are immutable after construction (init-only properties): use an object initializer to customize a permission set, or Default for the restrictive baseline.

public sealed class ProcessContainerPermissions
Inheritance
ProcessContainerPermissions
Inherited Members
Extension Methods

Properties

AllowDeviceAccess

Gets whether access to host devices is allowed.

public bool AllowDeviceAccess { get; init; }

Property Value

bool

AllowDiskRead

Gets whether read access to files is allowed. This must remain enabled for managed executables and dependencies to load.

public bool AllowDiskRead { get; init; }

Property Value

bool

AllowDiskWrite

Gets whether write access to files is allowed.

public bool AllowDiskWrite { get; init; }

Property Value

bool

AllowNetwork

Gets whether outbound/inbound network access is allowed.

public bool AllowNetwork { get; init; }

Property Value

bool

AllowProcessDebugging

Gets whether process debugging / inspection capabilities are allowed.

public bool AllowProcessDebugging { get; init; }

Property Value

bool

Default

Gets a fresh instance of the default (most restrictive) permission set used for plugin worker isolation. Each access returns a new, independent instance, so callers cannot mutate a shared baseline and silently weaken isolation for other consumers.

public static ProcessContainerPermissions Default { get; }

Property Value

ProcessContainerPermissions