summaryrefslogtreecommitdiff
path: root/src/journal/journald-native.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2012-11-23 18:35:24 +0100
committerLennart Poettering <lennart@poettering.net>2012-11-23 18:35:27 +0100
commitbe2155ce705c1c1a25fa5b2927e2e02f4b3c7a35 (patch)
tree70b350e39f18e68f943b46970e683ff01cfbfaaa /src/journal/journald-native.c
parent2eb8ca3b3ef37c601b3938f2656e379abd5c23d4 (diff)
journal: fix SO_PASSSEC invocation
Spotted by Lukas Nykryn
Diffstat (limited to 'src/journal/journald-native.c')
-rw-r--r--src/journal/journald-native.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/journal/journald-native.c b/src/journal/journald-native.c
index ac3183ece3..069114778b 100644
--- a/src/journal/journald-native.c
+++ b/src/journal/journald-native.c
@@ -396,7 +396,7 @@ int server_open_native_socket(Server*s) {
#ifdef HAVE_SELINUX
one = 1;
- r = setsockopt(s->syslog_fd, SOL_SOCKET, SO_PASSSEC, &one, sizeof(one));
+ r = setsockopt(s->native_fd, SOL_SOCKET, SO_PASSSEC, &one, sizeof(one));
if (r < 0)
log_warning("SO_PASSSEC failed: %m");
#endif