fix(managed): guard dropped-UID queue ownership inspection

Require effective SYS_PTRACE only for native owned workers and distinguish denied FD inspection from foreign queue ownership. Keep inode proof authoritative and constrain deployment to its private PID namespace.

Co-authored-by: GPT-6 <gpt-6@openai.com>
This commit is contained in:
ZeusinaandGPT-6 Bot committed 2026-10-11 21:48:06 +03:00
1 parent 18038e4112
commit 0398e6fe28
5 files changed
+120 -15

No files matched your search

+3 -2
View File
@@ -7,8 +7,9 @@ services:
dockerfile: Dockerfile.target
privileged: false
cap_drop: [ALL]
# nft/NFQUEUE, raw sends, UID/GID switching, cleanup of dropped-UID workers.
cap_add: [NET_ADMIN, NET_RAW, SETUID, SETGID, KILL]
# SYS_PTRACE permits /proc/<worker>/fd ownership checks after nfqws drops UID.
# Confined to this target's private PID namespace; never share host processes.
cap_add: [NET_ADMIN, NET_RAW, SETUID, SETGID, KILL, SYS_PTRACE]
environment:
SS_PASSWORD: ${SS_PASSWORD:?Set SS_PASSWORD in the deployment environment}
SS_DNS_SERVER: ${SS_DNS_SERVER-}