Commit 91133296 authored by Francesco Colista's avatar Francesco Colista
Browse files

main/libvirt: security upgrade to 5.5.0

(CVE-2019-10161, CVE-2019-10166, CVE-2019-10167, CVE-2019-10168)

Fixes #10619
parent 8daa712f
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=libvirt
pkgver=4.4.0
pkgver=5.5.0
_ver="${pkgver/_rc/-rc}"
pkgrel=0
pkgdesc="A virtualization API for several hypervisor and container systems"
......@@ -29,7 +29,7 @@ source="http://libvirt.org/sources/$pkgname-$pkgver.tar.xz
virtlogd.initd
virtlockd.initd
musl-fix-includes.patch
fix-fortify-virnetlink.patch
musl-stderr.patch
"
if [ "$CARCH" = "x86_64" ]; then
......@@ -40,6 +40,13 @@ subpackages="$subpackages $pkgname-common-drivers:_common_drivers"
builddir="$srcdir"/$pkgname-$pkgver
# secfixes:
# 5.5.0-r0:
# - CVE-2019-10161
# - CVE-2019-10166
# - CVE-2019-10167
# - CVE-2019-10168
build() {
cd "$builddir"
# qemu sets libexec dir to /usr/lib/qemu
......@@ -172,10 +179,10 @@ _common_drivers() {
"$subpkgdir"/etc/libvirt/
}
sha512sums="725b9b093a2aaeab6fdcb8df341a400ab363bcd50af8400dfd0593c41d8fbc8352f89147be9fbfde2e8418cc7298e090fe07ec7255b0aff1f0d001b93322f93f libvirt-4.4.0.tar.xz
sha512sums="47923aaca605fb43a53238ac535abc1f88f73435336b8f3e88cb01df277ed205d99c586991e523aa32b50c832a0a7c949ab5f84dc78eb8d18a4951cfc791448d libvirt-5.5.0.tar.xz
9aba6ab73219a635c64a340ee8887356e644445c9128734cbce73f5d54778378da2f10a190365ad88a7db8bc95b1fb17f0c6ca41fc41bb786c09e1afe84d65dc libvirt.confd
734afb83b7a4703dd238f1d89dbc853a8c73bcf1994af648c41ab01ae4088e5c7a423f0cb91e5e31f2ae5e60c66d08a6e1583a1e3b88bb5554e0f9fd15ecc15c libvirt.initd
36b85f473d292be8df415256d01a562131d8ae61450ba3893658090a12d589ca32215382f56f286a830b4e59ffd98fbe1d92004f2ce14ca0834451b943cd8f2f virtlogd.initd
a4c4d26e4111931acbe7594451bf963a36c8db33c64b1bc447ab4758bb92803510bebee0511d6bc16ba80c289ab6f87e74377d47bf560412f9adb9c161a206d9 virtlockd.initd
6efb52d179fd83db4a46a43e51b67c5f58a4d8199f4cf9070a63899d03c21d983f60629af9190de57731c85202f45d82585c4586d8db1dd56392140de7d5c2d0 musl-fix-includes.patch
0ef74be8c8f0e6c6ae6e3dcf6e83dc76c1371e1eaab123589f634c22f221cc26a8f0b0de6a9f5d36510b270d4a06fae42b51b749311f3e57953e65fbfc241911 fix-fortify-virnetlink.patch"
dfe042c596028125bf8548115de2922683829c4716f6b0efb8efc38518670e3e848481661b9714bb0664c1022b87e8f3c0773611fe10187b0bc588e2336ada0c musl-fix-includes.patch
a583c5981cda7fe2c17b5c7d4262399debea3e273124c43590cff029ce8d93868836ec1fe45d5776cd7ff26e31df577828e8541af56801a2b75eaa8f179cfc13 musl-stderr.patch"
diff --git a/src/storage/storage_backend_fs.c b/src/storage/storage_backend_fs.c
index 8983738..8833695 100644
index 0837443..0954e11 100644
--- a/src/storage/storage_backend_fs.c
+++ b/src/storage/storage_backend_fs.c
@@ -28,6 +28,7 @@
#include <stdio.h>
#include <errno.h>
@@ -26,6 +26,7 @@
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
+#include <paths.h>
#include <string.h>
#include "virerror.h"
#include "storage_backend_fs.h"
--- a/src/qemu/qemu_process.c 2019-03-07 18:52:23.722271821 +0100
+++ b/src/qemu/qemu_process.c 2019-03-07 18:53:53.129064501 +0100
@@ -92,6 +92,10 @@
VIR_LOG_INIT("qemu.qemu_process");
+#ifdef stderr
+# undef stderr
+#endif
+
/**
* qemuProcessRemoveDomainStatus
*
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment