From 96b8ef2b51191e249227fd64b428fc93a7998ee4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Milan=20P=2E=20Stani=C4=87?= <mps@arvanta.net>
Date: Wed, 13 Jan 2021 11:49:18 +0000
Subject: [PATCH] main/lxc: upgrade to 4.0.6

remove mountinfo_fails.patch, fixed upstream
---
 main/lxc/APKBUILD              |  8 +++----
 main/lxc/mountinfo_fails.patch | 43 ----------------------------------
 2 files changed, 3 insertions(+), 48 deletions(-)
 delete mode 100644 main/lxc/mountinfo_fails.patch

diff --git a/main/lxc/APKBUILD b/main/lxc/APKBUILD
index cb7efb6fa5ff..240d32fec220 100644
--- a/main/lxc/APKBUILD
+++ b/main/lxc/APKBUILD
@@ -2,7 +2,7 @@
 # Contributor: Jakub Jirutka <jakub@jirutka.cz>
 # Maintainer: Natanael Copa <ncopa@alpinelinux.org>
 pkgname=lxc
-pkgver=4.0.5
+pkgver=4.0.6
 _pkgver=${pkgver/_rc/.rc}
 pkgrel=1
 pkgdesc="Userspace interface for the Linux kernel containment features"
@@ -41,7 +41,6 @@ subpackages="
 source="https://linuxcontainers.org/downloads/lxc/lxc-$_pkgver.tar.gz
 	lxc.initd
 	lxc.confd
-	mountinfo_fails.patch
 	"
 
 # secfixes:
@@ -165,7 +164,6 @@ bashcomp() {
 	rmdir "$pkgdir"/etc/bash_completion.d
 }
 
-sha512sums="d536e767f4b7c1ea974469a19f89ddbcebbc3f8c7922b174b966fb2e80ae33199a8a915a962da9cbc7e075442555bc355525f2d4f8e76498b8a7e49f46dc006f  lxc-4.0.5.tar.gz
+sha512sums="98514796ef2091a291516ed7fde737df07ccfe374a0f8b4314e0ee992837e98ed02aa9f7809f8808a2f5ee1c7ae2dcea163531cdaedbb577211eeb9beff90c15  lxc-4.0.6.tar.gz
 b74ffe7c3e8f193265a90ffeb6e5743b1212bc1416b898e5a7e59ddd7f06fc77dc34e2dcbb3614038ac6222a95e2b9beb9f03ab734c991837203ab626b1b091f  lxc.initd
-91de43db5369a9e10102933514d674e9c875218a1ff2910dd882e5b9c308f9e430deacb13d1d7e0b2ed1ef682d0bb035aa6f8a6738f54fa2ca3a05acce04e467  lxc.confd
-5e203e66f3e6bbc5f6a0ac7e04d69b7f907ff9bd3458285badbb9f6ba50bbcc14fdd388222d8de9c160e45e1f25a59eeb9e2906e33cdfa488d885b7eb7387d0c  mountinfo_fails.patch"
+91de43db5369a9e10102933514d674e9c875218a1ff2910dd882e5b9c308f9e430deacb13d1d7e0b2ed1ef682d0bb035aa6f8a6738f54fa2ca3a05acce04e467  lxc.confd"
diff --git a/main/lxc/mountinfo_fails.patch b/main/lxc/mountinfo_fails.patch
deleted file mode 100644
index 7b580768221b..000000000000
--- a/main/lxc/mountinfo_fails.patch
+++ /dev/null
@@ -1,43 +0,0 @@
-From a39fc34bd6842ad1adc6144391071d8b1078667e Mon Sep 17 00:00:00 2001
-From: Christian Brauner <christian.brauner@ubuntu.com>
-Date: Mon, 16 Nov 2020 12:30:18 +0100
-Subject: [PATCH] conf: switch to fd_to_fd() when copying mountinfo
-
-Closes: #3580.
-Link: https://bugzilla.kernel.org/show_bug.cgi?id=209971
-Suggested-by: Joan Bruguera <joanbrugueram@gmail.com>
-Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
----
- src/lxc/conf.c | 10 +++-------
- 1 file changed, 3 insertions(+), 7 deletions(-)
-
-diff --git a/src/lxc/conf.c b/src/lxc/conf.c
-index d36d9063b6..84d16d7749 100644
---- a/src/lxc/conf.c
-+++ b/src/lxc/conf.c
-@@ -2980,9 +2980,9 @@ void turn_into_dependent_mounts(void)
- 	__do_free char *line = NULL;
- 	__do_fclose FILE *f = NULL;
- 	__do_close int memfd = -EBADF, mntinfo_fd = -EBADF;
--	int ret;
--	ssize_t copied;
- 	size_t len = 0;
-+	ssize_t copied;
-+	int ret;
- 
- 	mntinfo_fd = open("/proc/self/mountinfo", O_RDONLY | O_CLOEXEC);
- 	if (mntinfo_fd < 0) {
-@@ -3006,12 +3006,8 @@ void turn_into_dependent_mounts(void)
- 		}
- 	}
- 
--again:
--	copied = lxc_sendfile_nointr(memfd, mntinfo_fd, NULL, LXC_SENDFILE_MAX);
-+	copied = fd_to_fd(mntinfo_fd, memfd);
- 	if (copied < 0) {
--		if (errno == EINTR)
--			goto again;
--
- 		SYSERROR("Failed to copy \"/proc/self/mountinfo\"");
- 		return;
- 	}
-- 
GitLab