]> git.ipfire.org Git - thirdparty/systemd.git/commit
ssh-generator: Make sure sshd can always read the authorized keys file
authorDaan De Meyer <daan@amutable.com>
Thu, 28 May 2026 09:26:05 +0000 (09:26 +0000)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Fri, 29 May 2026 14:12:45 +0000 (16:12 +0200)
commit0a633184206150cdadce61bfaa402b689903631c
tree9e2805ac900ccc31d86b56e03283a9e62ef02b45
parent20572a8938dd017a23478a66c04f5768b763cb56
ssh-generator: Make sure sshd can always read the authorized keys file

sshd reads AuthorizedKeysFile after dropping to the authenticating user's UID, so the
0400 credential file under %d/ is unreadable for non-root users. Materialize a 0444
copy in a RuntimeDirectory so the ephemeral key works for any user. */
src/ssh-generator/ssh-generator.c
src/vmspawn/vmspawn.c