SHA256
1
0
forked from pool/postfix

- bsc#1120757 L3: File Permissions->Paranoid can cause a system hang

Break loop if postfix has no permission in spool directory.
  - add postfix-avoid-infinit-loop-if-no-permission.patch

OBS-URL: https://build.opensuse.org/package/show/server:mail/postfix?expand=0&rev=349
This commit is contained in:
Peter Varkoly
2019-09-19 06:21:01 +00:00
committed by Git OBS Bridge
parent 760dae75df
commit 566b0da6bd
3 changed files with 26 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
--- src/global/mail_queue.c-orig 2019-04-01 14:37:54.136169772 +0200
+++ src/global/mail_queue.c 2019-04-01 14:42:35.191382999 +0200
@@ -363,6 +363,14 @@
break;
if (errno == EEXIST || errno == EISDIR)
continue;
+ /*
+ * Avoid getting into an infinite loop when we don't have permission to
+ * read temp_path
+ */
+ if (errno == EACCES) {
+ msg_fatal("%s: create file %s: no permission", myname, STR(temp_path));
+ break;
+ }
msg_warn("%s: create file %s: %m", myname, STR(temp_path));
sleep(10);
}

View File

@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Thu Sep 19 06:20:48 UTC 2019 - Peter Varkoly <varkoly@suse.com>
- bsc#1120757 L3: File Permissions->Paranoid can cause a system hang
Break loop if postfix has no permission in spool directory.
- add postfix-avoid-infinit-loop-if-no-permission.patch
-------------------------------------------------------------------
Fri Aug 9 14:50:12 UTC 2019 - chris@computersalat.de

View File

@@ -73,6 +73,7 @@ Patch6: %{name}-linux45.patch
Patch7: %{name}-ssl-release-buffers.patch
Patch8: %{name}-vda-v14-3.0.3.patch
Patch9: fix-postfix-script.patch
Patch10: %{name}-avoid-infinit-loop-if-no-permission.patch
BuildRequires: ca-certificates
BuildRequires: cyrus-sasl-devel
BuildRequires: db-devel
@@ -173,6 +174,7 @@ PostgreSQL.
%patch7
%patch8
%patch9
%patch10
# ---------------------------------------------------------------------------