fix: address container-hardening re-verify findings

Recheck processes with a privilege sign in hardening-check and fail only
when the same process (PID and start time) keeps the sign in every scan,
so the transient runc process of any docker exec no longer gives a false
FAIL; run the root-write probe after the process probes. Name the second
Loki retention error form, fix the exit-code wording in the threat model
and record the live Loki retention probe in the evidence.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-27 08:57:05 +03:00
co-authored by Claude Opus 5.5
parent 273d7ce1d8
commit bcfad0c4f3
11 changed files with 331 additions and 48 deletions
+5 -2
View File
@@ -1429,8 +1429,11 @@ services:
# меток retention через системный временный каталог и при обработке
# копирует каждый туда же (retention/marker.go: os.TempDir,
# os.CreateTemp("", …)): на корне только на чтение — «failed to process
# marks … open /tmp/…: read-only file system», и чанки старше срока не
# удаляются (правки verify change container-hardening, C1). Файл меток —
# marks … open /tmp/…: read-only file system», а при пустом хранилище
# меток — «failed to apply retention … failed to create marker writer …
# read-only file system» (запись новых меток), и чанки старше срока не
# удаляются (правки verify change container-hardening, C1; вторая форма —
# правки повторного verify). Файл меток —
# boltdb до 100 000 ID чанков; у стенда — десятки KiB. Предел с запасом,
# tmpfs считается памятью контейнера (лимит 512M, GOMEMLIMIT 400MiB)
tmpfs: