1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-01 09:21:26 +03:00

journal: fix SO_PASSSEC invocation

Spotted by Lukas Nykryn
This commit is contained in:
Lennart Poettering 2012-11-23 18:35:24 +01:00
parent 2eb8ca3b3e
commit be2155ce70

View File

@ -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