Socket passing as capabilities
Socket passing as capabilities
Posted Nov 7, 2025 17:08 UTC (Fri) by MrWim (subscriber, #47432)Parent article: A security model for systemd
Something I appreciate about systemd is socket passing. Having init open the listening socket and passing it into the service feels like using a proper capability system. You get the guarantee that the service listening on port x is the one you expect, and the service itself needn't have network access at all (`PrivateNetwork=true`). It's secure and I find it easy to reason about (unlike iptables, etc.).
Unfortunately still many daemons still don't support it. I suspect this may be due to docker not supporting it - and that being the predominant deployment method these days - even though it seems like a natural fit for containerisation.
