fix(towercore): use native peer-read authorization

- Extend the existing native 0x203 ownership gate from opcode 0x21 to 0x23.
- Keep peer handover and context transfer semantics unchanged; block duplicate selector ambiguity in the proxy.
This commit is contained in:
TakuyaYagam1 committed 2026-11-29 16:02:13 +03:00
1 parent f657877375
commit 3cd120414f
3 files changed
+60 -97

No files matched your search

+19
View File
@@ -1,2 +1,21 @@
# syntax=docker/dockerfile:1
FROM --platform=$BUILDPLATFORM python:3.12-slim AS patcher
COPY bin/towercore-linux-mips64le /towercore
RUN python - <<'PY'
from pathlib import Path
path = Path("/towercore")
data = bytearray(path.read_bytes())
offset = 0x29324
original = bytes.fromhex("03 00 55 10")
replacement = bytes.fromhex("03 00 00 10")
actual = bytes(data[offset : offset + len(original)])
if actual != original:
raise SystemExit(f"unexpected bytes at {offset:#x}: {actual.hex()}")
data[offset : offset + len(original)] = replacement
path.write_bytes(data)
PY
FROM towercore:final-mips64le
COPY --from=patcher /towercore /towercore