]> git.ipfire.org Git - thirdparty/dovecot/core.git/commit
anvil: Use fifo flag to detect shared FIFO connections from master
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Tue, 28 Apr 2026 16:22:04 +0000 (16:22 +0000)
committertimo.sirainen <timo.sirainen@open-xchange.com>
Thu, 30 Apr 2026 06:41:03 +0000 (06:41 +0000)
commitf73a8ca5fdff613d0e5ba2a799c10ca50f4b05c8
treec07910534e68977e8bad48d46c5782461cfb5428
parent486e65fc15a148a4d3f35ddaef56cf1c80301951
anvil: Use fifo flag to detect shared FIFO connections from master

The master process passes two pipes to anvil as listen fds: nonblocking_fd
for KILL notifications from the master itself, and blocking_fd shared by
all service processes for CONNECT/DISCONNECT/KILL. Only the first one was
detected as the master FIFO via listen_fd == MASTER_LISTEN_FD_FIRST, so
connections from service processes arriving via blocking_fd were
classified as regular admin connections.

This had no visible effect previously, but later commits restrict
CONNECT/DISCONNECT/KILL to the shared FIFO connection type, which would
reject these commands from service processes.

Use conn->fifo instead, which is TRUE for both master pipes and never
set for unix listeners that anvil currently has.
src/anvil/main.c