ssh-tpm-agent: match the upstream systemd units

This commit is contained in:
Benedikt Rips 2025-08-12 07:36:39 +02:00 committed by Austin Horstman
parent 3a5136d8dd
commit 0d1e116e4f
3 changed files with 5 additions and 18 deletions

View file

@ -17,7 +17,7 @@
assertFileContent $serviceFile ${builtins.toFile "expected-service" ''
[Service]
Environment=SSH_TPM_AUTH_SOCK=%t/ssh-tpm-agent.sock
ExecStart=@ssh-tpm-agent@/bin/dummy -l %t/ssh-tpm-agent.sock -A %t/ssh-agent
ExecStart=@ssh-tpm-agent@/bin/dummy -A %t/ssh-agent
SuccessExitStatus=2
Type=simple
@ -27,7 +27,6 @@
BindsTo=ssh-agent.service
Description=ssh-tpm-agent service
Documentation=https://github.com/Foxboron/ssh-tpm-agent
RefuseManualStart=yes
Requires=ssh-tpm-agent.socket
''}
@ -36,9 +35,7 @@
WantedBy=sockets.target
[Socket]
DirectoryMode=0700
ListenStream=%t/ssh-tpm-agent.sock
RuntimeDirectory=ssh-tpm-agent
Service=ssh-tpm-agent.service
SocketMode=0600

View file

@ -16,7 +16,7 @@
assertFileContent $serviceFile ${builtins.toFile "expected-service" ''
[Service]
Environment=SSH_TPM_AUTH_SOCK=%t/ssh-tpm-agent.sock
ExecStart=@ssh-tpm-agent@/bin/dummy -l %t/ssh-tpm-agent.sock
ExecStart=@ssh-tpm-agent@/bin/dummy
SuccessExitStatus=2
Type=simple
@ -24,7 +24,6 @@
After=ssh-tpm-agent.socket
Description=ssh-tpm-agent service
Documentation=https://github.com/Foxboron/ssh-tpm-agent
RefuseManualStart=true
Requires=ssh-tpm-agent.socket
''}
@ -33,9 +32,7 @@
WantedBy=sockets.target
[Socket]
DirectoryMode=0700
ListenStream=%t/ssh-tpm-agent.sock
RuntimeDirectory=ssh-tpm-agent
Service=ssh-tpm-agent.service
SocketMode=0600