socket: add SocketUser= and SocketGroup= for chown()ing sockets in the file system

System Internals / systemd - Lennart Poettering [poettering.net] - 5 June 2014 02:55 UTC

This is relatively complex, as we cannot invoke NSS from PID 1, and thus need to fork a helper process temporarily.

3900e5f socket: add SocketUser= and SocketGroup= for chown()ing sockets in the file system
man/systemd.socket.xml | 38 +++--
src/core/dbus-socket.c | 4 +-
src/core/load-fragment-gperf.gperf.m4 | 4 +-
src/core/socket.c | 282 ++++++++++++++++++++++++---------
src/core/socket.h | 4 +
src/shared/exit-status.c | 3 +
src/shared/exit-status.h | 3 +-
7 files changed, 248 insertions(+), 90 deletions(-)

Upstream: github.com


  • Share