Skip to content
Snippets Groups Projects
Commit f0e01413 authored by Daniel P. Berrangé's avatar Daniel P. Berrangé :speech_balloon:
Browse files

logging: restrict sockets to mode 0600


The virtlogd daemon's only intended client is the libvirtd daemon. As
such it should never allow clients from other user accounts to connect.
The code already enforces this and drops clients from other UIDs, but
we can get earlier (and thus stronger) protection against DoS by setting
the socket permissions to 0600

Fixes CVE-2019-10132

Reviewed-by: default avatarJán Tomko <jtomko@redhat.com>
Signed-off-by: default avatarDaniel P. Berrangé <berrange@redhat.com>
(cherry picked from commit e37bd65f)
parent 41f06e60
No related branches found
No related tags found
No related merge requests found
......@@ -5,6 +5,7 @@ Before=libvirtd.service
[Socket]
ListenStream=@localstatedir@/run/libvirt/virtlogd-admin-sock
Service=virtlogd.service
SocketMode=0600
[Install]
WantedBy=sockets.target
......@@ -4,6 +4,7 @@ Before=libvirtd.service
[Socket]
ListenStream=@localstatedir@/run/libvirt/virtlogd-sock
SocketMode=0600
[Install]
WantedBy=sockets.target
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment