Commit 8cad441d authored by Francesco Colista's avatar Francesco Colista

main/libvirt: security upgrade to 5.5.0

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

Fixes #10620
parent 300e04f0
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=libvirt
pkgver=3.9.0
pkgver=5.5.0
_ver="${pkgver/_rc/-rc}"
pkgrel=1
pkgrel=0
pkgdesc="A virtualization API for several hypervisor and container systems"
url="http://libvirt.org/"
arch="all"
......@@ -28,7 +28,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
......@@ -39,6 +39,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
......@@ -162,10 +169,10 @@ _common_drivers() {
"$subpkgdir"/etc/libvirt/
}
sha512sums="59878fe5f98ffb73f949315c02ec19f6a075cab21f695c9b98927d17fdc0820d6fd0aa6a9820a6bdb8e6957884a9dccc30b175bc5a3d8d25617546cccd460a38 libvirt-3.9.0.tar.xz
sha512sums="47923aaca605fb43a53238ac535abc1f88f73435336b8f3e88cb01df277ed205d99c586991e523aa32b50c832a0a7c949ab5f84dc78eb8d18a4951cfc791448d libvirt-5.5.0.tar.xz
9aba6ab73219a635c64a340ee8887356e644445c9128734cbce73f5d54778378da2f10a190365ad88a7db8bc95b1fb17f0c6ca41fc41bb786c09e1afe84d65dc libvirt.confd
734afb83b7a4703dd238f1d89dbc853a8c73bcf1994af648c41ab01ae4088e5c7a423f0cb91e5e31f2ae5e60c66d08a6e1583a1e3b88bb5554e0f9fd15ecc15c libvirt.initd
36b85f473d292be8df415256d01a562131d8ae61450ba3893658090a12d589ca32215382f56f286a830b4e59ffd98fbe1d92004f2ce14ca0834451b943cd8f2f virtlogd.initd
a4c4d26e4111931acbe7594451bf963a36c8db33c64b1bc447ab4758bb92803510bebee0511d6bc16ba80c289ab6f87e74377d47bf560412f9adb9c161a206d9 virtlockd.initd
b6142256bf2700b9e5335c60fe5628e4095a24689c31d54afcab46f46a06b9c0ae676f87f77a487377eafbec11fb7afa9b994aef48a10a39e82f47c45df008ba musl-fix-includes.patch
0ef74be8c8f0e6c6ae6e3dcf6e83dc76c1371e1eaab123589f634c22f221cc26a8f0b0de6a9f5d36510b270d4a06fae42b51b749311f3e57953e65fbfc241911 fix-fortify-virnetlink.patch"
dfe042c596028125bf8548115de2922683829c4716f6b0efb8efc38518670e3e848481661b9714bb0664c1022b87e8f3c0773611fe10187b0bc588e2336ada0c musl-fix-includes.patch
a583c5981cda7fe2c17b5c7d4262399debea3e273124c43590cff029ce8d93868836ec1fe45d5776cd7ff26e31df577828e8541af56801a2b75eaa8f179cfc13 musl-stderr.patch"
--- libvirt-1.2.0.orig/src/storage/storage_backend_fs.c
+++ libvirt-1.2.0/src/storage/storage_backend_fs.c
@@ -30,6 +30,7 @@
#include <dirent.h>
#include <errno.h>
diff --git a/src/storage/storage_backend_fs.c b/src/storage/storage_backend_fs.c
index 0837443..0954e11 100644
--- a/src/storage/storage_backend_fs.c
+++ b/src/storage/storage_backend_fs.c
@@ -26,6 +26,7 @@
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
+#include <paths.h>
#include <unistd.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