journal: fix SO_PASSSEC invocation
Spotted by Lukas Nykryn
This commit is contained in:
parent
2eb8ca3b3e
commit
be2155ce70
|
@ -396,7 +396,7 @@ int server_open_native_socket(Server*s) {
|
||||||
|
|
||||||
#ifdef HAVE_SELINUX
|
#ifdef HAVE_SELINUX
|
||||||
one = 1;
|
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)
|
if (r < 0)
|
||||||
log_warning("SO_PASSSEC failed: %m");
|
log_warning("SO_PASSSEC failed: %m");
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue