From fc993dbf7d4ca60afaf889d2401118d1fbf095ce Mon Sep 17 00:00:00 2001 From: Michal Hlavinka Date: Thu, 9 Jan 2020 15:31:55 +0100 Subject: [PATCH] fix permissions of ghost files --- dovecot.spec | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/dovecot.spec b/dovecot.spec index 5d6c3c3..8af015d 100644 --- a/dovecot.spec +++ b/dovecot.spec @@ -304,7 +304,7 @@ fi install -d -m 0755 -g dovecot -d /run/dovecot install -d -m 0755 -d /run/dovecot/empty install -d -m 0750 -g dovenull -d /run/dovecot/login -install -d -m 0755 -g dovenull -d /run/dovecot/token-login +install -d -m 0750 -g dovenull -d /run/dovecot/token-login [ -x /sbin/restorecon ] && /sbin/restorecon -R /run/dovecot %preun @@ -439,7 +439,11 @@ make check %{_libexecdir}/%{name} %exclude %{_libexecdir}/%{name}/managesieve* -%ghost /run/dovecot +%attr(0755,root,dovecot) %ghost /run/dovecot +%attr(0750,root,dovenull) %ghost /run/dovecot/login +%attr(0750,root,dovenull) %ghost /run/dovecot/token-login +%attr(0755,root,root) %ghost /run/dovecot/empty + %attr(0750,dovecot,dovecot) /var/lib/dovecot %{_datadir}/%{name}