mirror of
https://github.com/systemd/systemd.git
synced 2026-08-04 15:10:33 +00:00
journal: fix SO_PASSSEC invocation
Spotted by Lukas Nykryn
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user