27bd1bd
From 0e50428d3699e3ad25861f458540d24038cfaa4e Mon Sep 17 00:00:00 2001
27bd1bd
From: Lennart Poettering <lennart@poettering.net>
27bd1bd
Date: Thu, 20 Jul 2017 20:46:58 +0200
27bd1bd
Subject: [PATCH] nspawn: downgrade warning when we get sd_notify() message
27bd1bd
 from unexpected process (#6416)
27bd1bd
27bd1bd
Given that we set NOTIFY_SOCKET unconditionally it's not surprising that
27bd1bd
processes way down the process tree think it's smart to send us a
27bd1bd
notification message.
27bd1bd
27bd1bd
It's still useful to keep this message, for debugging things, but it
27bd1bd
shouldn't be generated by default.
27bd1bd
27bd1bd
(cherry picked from commit 8cb574307963d1aeb1c53e1d1fbeee4a2be37259)
27bd1bd
---
27bd1bd
 src/nspawn/nspawn.c | 2 +-
27bd1bd
 1 file changed, 1 insertion(+), 1 deletion(-)
27bd1bd
27bd1bd
diff --git a/src/nspawn/nspawn.c b/src/nspawn/nspawn.c
27bd1bd
index 8a5fedd4b0..0cbd8c3491 100644
27bd1bd
--- a/src/nspawn/nspawn.c
27bd1bd
+++ b/src/nspawn/nspawn.c
27bd1bd
@@ -2836,7 +2836,7 @@ static int nspawn_dispatch_notify_fd(sd_event_source *source, int fd, uint32_t r
27bd1bd
         }
27bd1bd
 
27bd1bd
         if (!ucred || ucred->pid != inner_child_pid) {
27bd1bd
-                log_warning("Received notify message without valid credentials. Ignoring.");
27bd1bd
+                log_debug("Received notify message without valid credentials. Ignoring.");
27bd1bd
                 return 0;
27bd1bd
         }
27bd1bd