|
Pablo Greco |
40546a |
From bb4d2abe30f8ad3de4f7f3201de897440cdd545c Mon Sep 17 00:00:00 2001
|
|
Pablo Greco |
40546a |
Message-Id: <bb4d2abe30f8ad3de4f7f3201de897440cdd545c@dist-git>
|
|
Pablo Greco |
40546a |
From: Julio Faracco <jcfaracco@gmail.com>
|
|
Pablo Greco |
40546a |
Date: Mon, 1 Jul 2019 17:05:46 +0200
|
|
Pablo Greco |
40546a |
Subject: [PATCH] util: moving 'type' argument to avoid issues with mount()
|
|
Pablo Greco |
40546a |
syscall.
|
|
Pablo Greco |
40546a |
MIME-Version: 1.0
|
|
Pablo Greco |
40546a |
Content-Type: text/plain; charset=UTF-8
|
|
Pablo Greco |
40546a |
Content-Transfer-Encoding: 8bit
|
|
Pablo Greco |
40546a |
|
|
Pablo Greco |
40546a |
This commit fixes a mount call inside virgroup.c file. The NULL value
|
|
Pablo Greco |
40546a |
into 'type' argument is causing a valgrind issue. See commit 794b576c
|
|
Pablo Greco |
40546a |
for more details. The best approach to fix it is moving NULL to "none"
|
|
Pablo Greco |
40546a |
filesytem.
|
|
Pablo Greco |
40546a |
|
|
Pablo Greco |
40546a |
Signed-off-by: Julio Faracco <jcfaracco@gmail.com>
|
|
Pablo Greco |
40546a |
(cherry picked from commit 4539301bc84ee65558a48c1c3c22aa04f458dbe0)
|
|
Pablo Greco |
40546a |
|
|
Pablo Greco |
40546a |
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1689297
|
|
Pablo Greco |
40546a |
|
|
Pablo Greco |
40546a |
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
|
|
Pablo Greco |
40546a |
Message-Id: <006a95f4385f575718eee431fc905702cff3e848.1561993099.git.phrdina@redhat.com>
|
|
Pablo Greco |
40546a |
Reviewed-by: Ján Tomko <jtomko@redhat.com>
|
|
Pablo Greco |
40546a |
---
|
|
Pablo Greco |
40546a |
src/util/vircgroup.c | 2 +-
|
|
Pablo Greco |
40546a |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
Pablo Greco |
40546a |
|
|
Pablo Greco |
40546a |
diff --git a/src/util/vircgroup.c b/src/util/vircgroup.c
|
|
Pablo Greco |
40546a |
index 0a31947b0d..e810a3d81d 100644
|
|
Pablo Greco |
40546a |
--- a/src/util/vircgroup.c
|
|
Pablo Greco |
40546a |
+++ b/src/util/vircgroup.c
|
|
Pablo Greco |
40546a |
@@ -3962,7 +3962,7 @@ virCgroupBindMount(virCgroupPtr group, const char *oldroot,
|
|
Pablo Greco |
40546a |
goto cleanup;
|
|
Pablo Greco |
40546a |
}
|
|
Pablo Greco |
40546a |
|
|
Pablo Greco |
40546a |
- if (mount(src, group->controllers[i].mountPoint, NULL, MS_BIND,
|
|
Pablo Greco |
40546a |
+ if (mount(src, group->controllers[i].mountPoint, "none", MS_BIND,
|
|
Pablo Greco |
40546a |
NULL) < 0) {
|
|
Pablo Greco |
40546a |
virReportSystemError(errno,
|
|
Pablo Greco |
40546a |
_("Failed to bind cgroup '%s' on '%s'"),
|
|
Pablo Greco |
40546a |
--
|
|
Pablo Greco |
40546a |
2.22.0
|
|
Pablo Greco |
40546a |
|