Accepting request 529111 from home:varkoly:branches:server:mail

- bnc#1016491 postfix raported to log "warning: group or other writable:"
   on each symlink in config.

OBS-URL: https://build.opensuse.org/request/show/529111
OBS-URL: https://build.opensuse.org/package/show/server:mail/postfix?expand=0&rev=276
This commit is contained in:
Peter Varkoly 2017-09-28 14:24:06 +00:00 committed by Git OBS Bridge
parent 6c8f34c68d
commit 535d279360
3 changed files with 30 additions and 0 deletions

22
fix-postfix-script.patch Normal file
View File

@ -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.

View File

@ -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

View File

@ -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
# ---------------------------------------------------------------------------