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:
parent
2eb8ca3b3e
commit
be2155ce70
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user