summaryrefslogtreecommitdiff
path: root/src/journal/journald.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2012-05-23 12:49:41 +0200
committerLennart Poettering <lennart@poettering.net>2012-05-23 12:49:41 +0200
commit1afd5be42f8f4105dd47c71ce968c9d5bf81e0a8 (patch)
tree9d55397962a748f1af7b6de15eb3a9cd0b54499b /src/journal/journald.c
parent66b1a24790ccc3c60509e6f94890ed8c20a2fe9e (diff)
journal: don't complain if SELinux userspace is available but the kernel lacks it
Diffstat (limited to 'src/journal/journald.c')
-rw-r--r--src/journal/journald.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/journal/journald.c b/src/journal/journald.c
index c429896ac4..7776c2a25c 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) {