https://gitlab.synchro.net/main/sbbs/-/commit/0ac64633c25882da43cf6fb7
Modified Files:
docs/v322_new.md src/sbbs3/GNUmakefile sbbscon.c
Log Message:
sbbscon: remove the DONT_BLAME_SYNCHRONET build option
Building with "gmake DONT_BLAME_SYNCHRONET=1" made sbbscon change only its effective uid when running as a non-root user (-u), leaving the real and
saved uid as root, so the servers could re-bind ports below 1024 when
recycled. Any code-execution flaw in a server could then regain root.
Added in 772ac0b2fc (down-14-ensemble, 2003-09-02) as an opt-in for
non-Linux systems, back when LinuxThreads kept root around on Linux
regardless. Nothing in the tree, the CI, or the CMake build sets it, and
the wiki's build-option list says not to use it.
Without it, a non-root sbbscon always drops root fully and disables
recycle for servers bound to low ports, as it already did by default.
To recycle those, give sbbs the port-binding capability instead (on Linux, build with the libcap headers installed and run "make setcap", or use
systemd AmbientCapabilities=CAP_NET_BIND_SERVICE or net.ipv4.ip_unprivileged_port_start).
Co-Authored-By: Claude Opus 5.5 <
noreply@anthropic.com>
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net