]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
ssh: add RuntimeDirectory=sshd
authorLuca Boccassi <bluca@debian.org>
Mon, 30 Oct 2023 11:49:20 +0000 (11:49 +0000)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Tue, 31 Oct 2023 06:32:56 +0000 (07:32 +0100)
[  209.582912] sshd[888]: fatal: Missing privilege separation directory: /run/sshd

mkosi/__init__.py

index 7071a8a3d309466dee1c8f247c3e77b300374933..cde82ddf0b49161f894c4a7e83a0fd4183662dde 100644 (file)
@@ -1674,6 +1674,7 @@ def configure_ssh(state: MkosiState) -> None:
                 ExecStart=sshd -i -o UsePAM=no
                 StandardInput=socket
                 RuntimeDirectoryPreserve=yes
+                RuntimeDirectory=sshd
                 # ssh always exits with 255 even on normal disconnect, so let's mark that as success so we
                 # don't get noisy logs about SSH service failures.
                 SuccessExitStatus=255