chiark / gitweb /
journal: don't complain if SELinux userspace is available but the kernel lacks it
[elogind.git] / src / journal / journald.c
index c429896ac40cbd4aa9cb8530da247fe853743fbb..7776c2a25c4e58a624b9a40a849e1fb154d9ebb2 100644 (file)
@@ -1692,8 +1692,8 @@ static int stdout_stream_new(Server *s) {
         }
 
 #ifdef HAVE_SELINUX
-        if (getpeercon(fd, &stream->security_context) < 0)
-                log_error("Failed to determine peer security context.");
+        if (getpeercon(fd, &stream->security_context) < 0 && errno != ENOPROTOOPT)
+                log_error("Failed to determine peer security context: %m");
 #endif
 
         if (shutdown(fd, SHUT_WR) < 0) {