summaryrefslogtreecommitdiff
path: root/src/journal/journald-native.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2020-10-26 16:31:07 +0100
committerLennart Poettering <lennart@poettering.net>2020-10-27 14:12:26 +0100
commit3b719003c386c8e93f31eb98b8cc5bcd6941822f (patch)
treee816ce24167f7ca2cbdfbb132c6e0d9db73a98a2 /src/journal/journald-native.c
parent2d6d4136cdad5cde1f7fa8b54e427383645ab5fe (diff)
downloadsystemd-3b719003c386c8e93f31eb98b8cc5bcd6941822f.tar.gz
journald: remove pointless conditionalization
Let's not have #ifdeffery both in the consumers and the providers of the selinux glue code. Unless the code is particularly complex, let's do the ifdeffery only in the provider of the selinux glue code, and let's keep the consumers simple and just invoke it.
Diffstat (limited to 'src/journal/journald-native.c')
-rw-r--r--src/journal/journald-native.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/journal/journald-native.c b/src/journal/journald-native.c
index f2b867da3d..fed81161e0 100644
--- a/src/journal/journald-native.c
+++ b/src/journal/journald-native.c
@@ -483,13 +483,11 @@ int server_open_native_socket(Server *s, const char *native_socket) {
if (r < 0)
return log_error_errno(r, "SO_PASSCRED failed: %m");
-#if HAVE_SELINUX
if (mac_selinux_use()) {
r = setsockopt_int(s->native_fd, SOL_SOCKET, SO_PASSSEC, true);
if (r < 0)
log_warning_errno(r, "SO_PASSSEC failed: %m");
}
-#endif
r = setsockopt_int(s->native_fd, SOL_SOCKET, SO_TIMESTAMP, true);
if (r < 0)