]> git.ipfire.org Git - thirdparty/systemd.git/commit
core/socket: introduce AcceptFileDescriptors=
authorMike Yuan <me@yhndnzj.com>
Fri, 6 Jun 2025 19:01:33 +0000 (21:01 +0200)
committerMike Yuan <me@yhndnzj.com>
Tue, 17 Jun 2025 11:16:42 +0000 (13:16 +0200)
commit5c12797fc3dc2dac37ef2c7873e59cbb6da19daf
treecced08ca45906fabc3364e61440cdaaa2ed86329
parentf66eeedf6fee3f8f96f3e6547819de3bb10515ed
core/socket: introduce AcceptFileDescriptors=

This controls the new SO_PASSRIGHTS socket option in kernel v6.16.
Note that I intentionally choose a different naming scheme than
Pass*=, since all other Pass*= options controls whether some extra
bits are attached to the message, while this one's about denying
file descriptor transfer and it feels more explicit this way.
And diverging from underlying socket option name is precedented
by Timestamping=. But happy to change it to just say PassRights=
if people disagree.
man/org.freedesktop.systemd1.xml
man/systemd.socket.xml
src/core/dbus-socket.c
src/core/load-fragment-gperf.gperf.in
src/core/socket.c
src/core/socket.h
src/shared/bus-unit-util.c