fix(cmdeploy): Set permissions on dovecot pin

Ensure the preferences.d snippet that pins dovecot packages to block
Debian dist-upgrades is owned by root:root and has 644 permissions.

Files in this directory are generally expected to be world readable to ensure unprivileged operations such as apt-get in simulation mode. Having them not world readable breaks such usages.
This commit is contained in:
Alexandre Gauthier
2026-04-09 12:21:25 -04:00
committed by missytake
parent 74326a8c54
commit 54863453c2

View File

@@ -61,6 +61,9 @@ class DovecotDeployer(Deployer):
"Pin-Priority: -1\n" "Pin-Priority: -1\n"
), ),
dest="/etc/apt/preferences.d/pin-dovecot", dest="/etc/apt/preferences.d/pin-dovecot",
user="root",
group="root",
mode="644",
) )
def configure(self): def configure(self):