summaryrefslogtreecommitdiff
path: root/src/journal/journald-syslog.c
diff options
context:
space:
mode:
authorDavid Herrmann <dh.herrmann@googlemail.com>2015-11-30 19:30:03 +0100
committerDavid Herrmann <dh.herrmann@googlemail.com>2015-11-30 19:30:03 +0100
commitde418eb91cfa07f2d67f0eeaf0e787da4fa4feac (patch)
treeebae7c02386b958d754de33bddc6ec36fdc20fe3 /src/journal/journald-syslog.c
parenta00405285e5ee25d7532f66f470b0bb7fb8df7de (diff)
parent20ba6c2ebe083a6a5021b68622637c710ea12115 (diff)
Merge pull request #2053 from poettering/selinux-fix
Two unrelated fixes
Diffstat (limited to 'src/journal/journald-syslog.c')
-rw-r--r--src/journal/journald-syslog.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/journal/journald-syslog.c b/src/journal/journald-syslog.c
index f3ac1a7ae0..cfc50d889b 100644
--- a/src/journal/journald-syslog.c
+++ b/src/journal/journald-syslog.c
@@ -415,7 +415,7 @@ int server_open_syslog_socket(Server *s) {
return log_error_errno(errno, "SO_PASSCRED failed: %m");
#ifdef HAVE_SELINUX
- if (mac_selinux_use()) {
+ if (mac_selinux_have()) {
r = setsockopt(s->syslog_fd, SOL_SOCKET, SO_PASSSEC, &one, sizeof(one));
if (r < 0)
log_warning_errno(errno, "SO_PASSSEC failed: %m");