journal: don't complain if SELinux userspace is available but the kernel lacks it

This commit is contained in:
Lennart Poettering
2012-05-23 12:49:41 +02:00
parent 66b1a24790
commit 1afd5be42f
2 changed files with 4 additions and 4 deletions
+2 -2
View 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) {