Skip to content

Commit 5486345

Browse files
mrdaemonmissytake
authored andcommitted
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.
1 parent 74326a8 commit 5486345

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

cmdeploy/src/cmdeploy/dovecot/deployer.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@ def install(self):
6161
"Pin-Priority: -1\n"
6262
),
6363
dest="/etc/apt/preferences.d/pin-dovecot",
64+
user="root",
65+
group="root",
66+
mode="644",
6467
)
6568

6669
def configure(self):

0 commit comments

Comments
 (0)