summaryrefslogtreecommitdiffstats
path: root/debian/patches/70_postfix-check.diff
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-10 19:59:04 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-10 19:59:04 +0000
commitcc0cf222a55b518d86e9179ba08c61c298144c61 (patch)
tree98ad9d9c8459e9f7347678bbbaed28fa30739f6e /debian/patches/70_postfix-check.diff
parentAdding upstream version 3.8.5. (diff)
downloadpostfix-cc0cf222a55b518d86e9179ba08c61c298144c61.tar.xz
postfix-cc0cf222a55b518d86e9179ba08c61c298144c61.zip
Adding debian version 3.8.5-1.debian/3.8.5-1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/patches/70_postfix-check.diff')
-rw-r--r--debian/patches/70_postfix-check.diff26
1 files changed, 26 insertions, 0 deletions
diff --git a/debian/patches/70_postfix-check.diff b/debian/patches/70_postfix-check.diff
new file mode 100644
index 0000000..34ab906
--- /dev/null
+++ b/debian/patches/70_postfix-check.diff
@@ -0,0 +1,26 @@
+From: LaMont Jones <lamont@debian.org>
+Subject: Update postfix-script so no warnings for Debian related symlinks
+Forwarded: not-needed
+Index: postfix/conf/postfix-script
+===================================================================
+--- postfix.orig/conf/postfix-script
++++ postfix/conf/postfix-script
+@@ -314,9 +314,17 @@ check-warn)
+ find $todo ! -user root \
+ -exec $WARN not owned by root: {} \;
+
+- find $todo \( -perm -020 -o -perm -002 \) \
++ # Handle symlinks separately
++ find -L $todo \( -perm -020 -o -perm -002 \) \
+ -exec $WARN group or other writable: {} \;
+
++ find $todo -type l | while read f; do \
++ # makedefs out known to be a symlink and OK
++ if [ "$f" != "/etc/postfix/./makedefs.out" ]; then \
++ readlink "$f" | grep -q / && $WARN symlink leaves directory: "$f"; \
++ fi \
++ done; \
++
+ # Check Postfix mail_owner-owned directory tree owner/permissions.
+
+ find $data_directory/. ! -user $mail_owner \