Authenticate echobot by passing /run/echobot/password to doveauth

This commit is contained in:
link2xt
2024-05-04 14:57:37 +00:00
parent 0493e27312
commit e1b1a945b1
3 changed files with 38 additions and 4 deletions

View File

@@ -13,6 +13,12 @@ Group=echobot
# Create /var/lib/echobot
StateDirectory=echobot
# Create /run/echobot
#
# echobot stores /run/echobot/password
# with a password there, which doveauth then reads.
RuntimeDirectory=echobot
WorkingDirectory=/var/lib/echobot
# Apply security restrictions suggested by
@@ -24,7 +30,10 @@ NoNewPrivileges=true
PrivateDevices=true
PrivateMounts=true
PrivateTmp=true
PrivateUsers=true
# We need to know about doveauth user to give it access to /run/echobot/password
PrivateUsers=false
ProtectClock=true
ProtectControlGroups=true
ProtectHostname=true