valeriyvdovin / rpms / systemd

Forked from rpms/systemd 4 years ago
Clone

Blame SOURCES/0014-journald-audit-exit-gracefully-in-the-case-we-can-t-.patch

803fb7
From 9b5e05005e534fc7fb6dc56c94e3296bb17fe122 Mon Sep 17 00:00:00 2001
803fb7
From: Lukas Nykryn <lnykryn@redhat.com>
803fb7
Date: Fri, 6 Mar 2015 12:41:20 +0100
803fb7
Subject: [PATCH] journald-audit: exit gracefully in the case we can't join
803fb7
 audit multicast group
803fb7
803fb7
---
803fb7
 src/journal/journald-audit.c | 6 ++++--
803fb7
 1 file changed, 4 insertions(+), 2 deletions(-)
803fb7
803fb7
diff --git a/src/journal/journald-audit.c b/src/journal/journald-audit.c
803fb7
index c2f1545cc..151097a6e 100644
803fb7
--- a/src/journal/journald-audit.c
803fb7
+++ b/src/journal/journald-audit.c
803fb7
@@ -529,8 +529,10 @@ int server_open_audit(Server *s) {
803fb7
                 }
803fb7
 
803fb7
                 r = bind(s->audit_fd, &sa.sa, sizeof(sa.nl));
803fb7
-                if (r < 0)
803fb7
-                        return log_error_errno(errno, "Failed to join audit multicast group: %m");
803fb7
+                if (r < 0) {
803fb7
+                        log_warning_errno(errno, "Failed to join audit multicast group, ignoring: %m");
803fb7
+                        return 0;
803fb7
+                }
803fb7
         } else
803fb7
                 fd_nonblock(s->audit_fd, 1);
803fb7