]> git.ipfire.org Git - thirdparty/systemd.git/commit
core/service: only pass socket fds to control processes
authorMike Yuan <me@yhndnzj.com>
Wed, 29 Oct 2025 20:25:42 +0000 (21:25 +0100)
committerMike Yuan <me@yhndnzj.com>
Thu, 30 Oct 2025 16:47:29 +0000 (17:47 +0100)
commitc954830fa93142a66eb29e4bbb089b88e86a7d6b
tree7cb54598a015d4d59a4571fc3dd8f987b4d88e82
parentd85d98f4066bff3816348f75cf1cb24c0c3c9f79
core/service: only pass socket fds to control processes

If socket is used as stdio, we'd currently imply EXEC_PASS_FDS
and dump the whole set of fds to the control processes. This is
pretty much unexpected and unnecessary though, instead let's
pass only the socket fds.

Yes, this is a compat break, but a relatively minor one I'd
argue. And we can always revisit things if users do complain.
src/core/execute.c
src/core/service.c
src/core/socket.c