diff --git a/fix-postfix-script.patch b/fix-postfix-script.patch new file mode 100644 index 0000000..d49d583 --- /dev/null +++ b/fix-postfix-script.patch @@ -0,0 +1,22 @@ +--- conf/postfix-script 2016-01-31 16:05:46.000000000 -0500 ++++ conf/postfix-script 2016-03-01 19:23:51.000000000 -0500 +@@ -272,10 +277,17 @@ + } + todo=`echo "$todo" | tr ' ' '\12' | sort -u` + +- find $todo ! -user root \ ++ if find -L $config_directory/main.cf >/dev/null 2>&1 ++ then ++ FIND="find -L" ++ else ++ FIND=find ++ fi ++ ++ $FIND $todo ! -user root \ + -exec $WARN not owned by root: {} \; + +- find $todo \( -perm -020 -o -perm -002 \) \ ++ $FIND $todo \( -perm -020 -o -perm -002 \) \ + -exec $WARN group or other writable: {} \; + + # Check Postfix mail_owner-owned directory tree owner/permissions. diff --git a/postfix.changes b/postfix.changes index 2d96ddf..77b1263 100644 --- a/postfix.changes +++ b/postfix.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Sep 28 08:44:41 UTC 2017 - varkoly@suse.com + +- bnc#1016491 postfix raported to log "warning: group or other writable:" + on each symlink in config. + ------------------------------------------------------------------- Mon Sep 25 16:25:05 UTC 2017 - michael@stroeder.com diff --git a/postfix.spec b/postfix.spec index dbd007f..3f7da6b 100644 --- a/postfix.spec +++ b/postfix.spec @@ -79,6 +79,7 @@ Patch5: %{name}-master.cf.patch Patch6: %{name}-linux45.patch Patch7: %{name}-ssl-release-buffers.patch Patch8: %{name}-vda-v14-3.0.3.patch +Patch9: fix-postfix-script.patch BuildRequires: ca-certificates BuildRequires: cyrus-sasl-devel @@ -194,6 +195,7 @@ PostgreSQL. %patch6 %patch7 %patch8 +%patch9 # ---------------------------------------------------------------------------