X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fjournal%2Fjournald.c;h=7776c2a25c4e58a624b9a40a849e1fb154d9ebb2;hb=1afd5be42f8f4105dd47c71ce968c9d5bf81e0a8;hp=c429896ac40cbd4aa9cb8530da247fe853743fbb;hpb=a6903061530cac5fbaa99a080a93221c02c349f9;p=elogind.git diff --git a/src/journal/journald.c b/src/journal/journald.c index c429896ac..7776c2a25 100644 --- a/src/journal/journald.c +++ b/src/journal/journald.c @@ -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) {