diff options
| author | tanaka takashi <isazaka@gmail.com> | 2026-08-14 18:00:29 +0900 |
|---|---|---|
| committer | tanaka takashi <isazaka@gmail.com> | 2026-08-14 18:00:29 +0900 |
| commit | a8233adff75a4726015c7c96ce5e864d4506f6b2 (patch) | |
| tree | 8ce06e1bc5d605b9681259260c99a47921e65413 /src/Agent.Admin/Agent.Admin.Host/WfpDynamicSession.cs | |
| parent | e07183ee6d3e57da325213e898cdcd6687320f53 (diff) | |
Unify the public product name and repository identifier while preserving stable executable, store, AppContainer, namespace, pipe, and mutex identifiers.
Make Directory.Build.props VersionPrefix the application-version source of truth, use SDK-generated assembly metadata, and compare helper compatibility by parsed major/minor/build release identity.
Rebuild the fixed winagent-sandbox-mcp release staging directory from clean defaults, emit versioned ZIP/checksum assets, verify manifests and fresh extraction, and reject local configuration, user state, and test artifacts.
Document release/deployment separation and upgrade responsibilities, add the initial changelog, update operational script paths, and record the v0.1.0 verification results.
Diffstat (limited to 'src/Agent.Admin/Agent.Admin.Host/WfpDynamicSession.cs')
| -rw-r--r-- | src/Agent.Admin/Agent.Admin.Host/WfpDynamicSession.cs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/Agent.Admin/Agent.Admin.Host/WfpDynamicSession.cs b/src/Agent.Admin/Agent.Admin.Host/WfpDynamicSession.cs index 4aa21da..3961e83 100644 --- a/src/Agent.Admin/Agent.Admin.Host/WfpDynamicSession.cs +++ b/src/Agent.Admin/Agent.Admin.Host/WfpDynamicSession.cs @@ -20,7 +20,7 @@ public sealed unsafe class WfpDynamicSession : IDisposable private readonly List<ulong> _filterIds = []; private WfpDynamicSession(FwpmEngineClose0SafeHandle engine) => _engine = engine; - public static WfpDynamicSession Open(string displayName = "Agent Sandbox MCP dynamic task session") + public static WfpDynamicSession Open(string displayName = "WinAgent Sandbox MCP dynamic task session") { FWPM_SESSION0 session = default; session.flags = PInvoke.FWPM_SESSION_FLAG_DYNAMIC; @@ -48,7 +48,7 @@ public sealed unsafe class WfpDynamicSession : IDisposable try { Guid subLayerKey = Guid.NewGuid(); - fixed (char* subLayerName = "Agent Sandbox MCP task sublayer") + fixed (char* subLayerName = "WinAgent Sandbox MCP task sublayer") { FWPM_SUBLAYER0 subLayer = default; subLayer.subLayerKey = subLayerKey; @@ -60,8 +60,8 @@ public sealed unsafe class WfpDynamicSession : IDisposable fixed (byte* sidPointer = sidBytes) { foreach (NetworkEndpoint endpoint in allowedEndpoints ?? []) _filterIds.Add(AddPackagePermit(endpoint, subLayerKey, (SID*)sidPointer)); - _filterIds.Add(AddPackageBlock(PInvoke.FWPM_LAYER_ALE_AUTH_CONNECT_V4, subLayerKey, (SID*)sidPointer, "Agent Sandbox MCP IPv4 default block")); - _filterIds.Add(AddPackageBlock(PInvoke.FWPM_LAYER_ALE_AUTH_CONNECT_V6, subLayerKey, (SID*)sidPointer, "Agent Sandbox MCP IPv6 default block")); + _filterIds.Add(AddPackageBlock(PInvoke.FWPM_LAYER_ALE_AUTH_CONNECT_V4, subLayerKey, (SID*)sidPointer, "WinAgent Sandbox MCP IPv4 default block")); + _filterIds.Add(AddPackageBlock(PInvoke.FWPM_LAYER_ALE_AUTH_CONNECT_V6, subLayerKey, (SID*)sidPointer, "WinAgent Sandbox MCP IPv6 default block")); } ThrowIfError(PInvoke.FwpmTransactionCommit0(_engine), "FwpmTransactionCommit0"); committed = true; @@ -159,7 +159,7 @@ public sealed unsafe class WfpDynamicSession : IDisposable conditions[2].matchType = FWP_MATCH_TYPE.FWP_MATCH_EQUAL; conditions[2].conditionValue.type = FWP_DATA_TYPE.FWP_UINT16; conditions[2].conditionValue.uint16 = endpoint.Port; - string displayName = $"Agent Sandbox MCP allow {endpoint.Address}:{endpoint.Port}"; + string displayName = $"WinAgent Sandbox MCP allow {endpoint.Address}:{endpoint.Port}"; fixed (char* name = displayName) { FWPM_FILTER0 filter = default; |
