|
ScriptStack 1.0.5
|
A conservative "safe" policy: allows access only to a small set of generally harmless BCL types and members, blocks reflection/IO/process/threading by default. More...
Public Member Functions | |
| bool | IsTypeAllowed (Type t) |
| bool | IsMemberAllowed (MemberInfo m) |
| bool | IsCallAllowed (MethodInfo m) |
| bool | IsReturnValueAllowed (object? value) |
Static Private Member Functions | |
| static bool | IsSafePrimitiveLike (Type t) |
| static bool | IsBlockedNamespace (string? ns) |
A conservative "safe" policy: allows access only to a small set of generally harmless BCL types and members, blocks reflection/IO/process/threading by default.
This is intentionally restrictive. Extend/replace it for your use-case.
Definition at line 35 of file ClrPolicies.cs.
|
staticprivate |
Definition at line 49 of file ClrPolicies.cs.
Referenced by IsTypeAllowed().
| bool ScriptStack.Runtime.SafeClrPolicy.IsCallAllowed | ( | MethodInfo | m | ) |
Implements ScriptStack.Runtime.IClrPolicy.
Definition at line 139 of file ClrPolicies.cs.
References IsTypeAllowed().
| bool ScriptStack.Runtime.SafeClrPolicy.IsMemberAllowed | ( | MemberInfo | m | ) |
Implements ScriptStack.Runtime.IClrPolicy.
Definition at line 106 of file ClrPolicies.cs.
References IsTypeAllowed().
| bool ScriptStack.Runtime.SafeClrPolicy.IsReturnValueAllowed | ( | object? | value | ) |
Implements ScriptStack.Runtime.IClrPolicy.
Definition at line 181 of file ClrPolicies.cs.
References IsTypeAllowed().
|
staticprivate |
Definition at line 37 of file ClrPolicies.cs.
Referenced by IsTypeAllowed().
| bool ScriptStack.Runtime.SafeClrPolicy.IsTypeAllowed | ( | Type | t | ) |
Implements ScriptStack.Runtime.IClrPolicy.
Definition at line 63 of file ClrPolicies.cs.
References IsBlockedNamespace(), IsSafePrimitiveLike(), and IsTypeAllowed().
Referenced by IsCallAllowed(), IsMemberAllowed(), IsReturnValueAllowed(), and IsTypeAllowed().