ssh-generator: create privsep dir via tmpfiles.d/ if we are told to
authorLennart Poettering <lennart@poettering.net>
Fri, 1 Mar 2024 10:25:52 +0000 (11:25 +0100)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 3 Apr 2024 16:01:10 +0000 (01:01 +0900)
commit5360b10f29d72b6424cbaab7cb5d65cf95fcc828
treee3a5976cc62d67d5f05ab4fd448fa3691430209d
parent1c6ca6d92483d642064291483e6055017072257d
ssh-generator: create privsep dir via tmpfiles.d/ if we are told to

To make it easy to have a workable ssh-generator on various distros,
let's optionally generate the ssh privsep dir via tmpfiles.d/ drop-in.

This enables the concept with a path of /run/sshd/ as default. This is
the path Debian/Ubuntu uses, and means that we just work on those
distros. Debian/Ubuntu is the only distro (apparently?) that puts the
privsep dir under /run/, hence always needs the dir to be created
manually. Other distros don't need it that much, because they place the
dir in /usr/ (fedora, best choice!) or /var/ (others, not ideal, because
still mutable).

Also adds a longer explanation about this in NEWS, in the hope that
distro maintaines read that and maybe start cleaning this up.

Alternative to: #31543
NEWS
meson.build
meson_options.txt
tmpfiles.d/20-systemd-ssh-generator.conf.in