]> git.ipfire.org Git - thirdparty/libvirt.git/commit
locking: restrict sockets to mode 0600
authorDaniel P. Berrangé <berrange@redhat.com>
Tue, 30 Apr 2019 15:51:37 +0000 (16:51 +0100)
committerDaniel P. Berrangé <berrange@redhat.com>
Tue, 21 May 2019 12:05:00 +0000 (13:05 +0100)
commitf111e09468693909b1f067aa575efdafd9a262a1
tree9a08f0e4b825c34cb221d4b962fa620df37aa5c7
parent96f41cd765c9e525fe28ee5abbfbf4a79b3720c7
locking: restrict sockets to mode 0600

The virtlockd 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: Ján Tomko <jtomko@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
src/locking/virtlockd-admin.socket.in
src/locking/virtlockd.socket.in