From: Chen Hanxiao Date: Tue, 10 Dec 2013 16:29:09 +0000 (+0000) Subject: If we do not specify a readonly mount, we don't need to X-Git-Tag: CVE-2013-6436~55 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6006c091e2aba0fbe3652c8cd082d0319f42b902;p=thirdparty%2Flibvirt.git If we do not specify a readonly mount, we don't need to re-mount it again. Signed-off-by: Chen Hanxiao --- diff --git a/src/lxc/lxc_container.c b/src/lxc/lxc_container.c index b17259c4e1..51fa1b36fb 100644 --- a/src/lxc/lxc_container.c +++ b/src/lxc/lxc_container.c @@ -1093,13 +1093,6 @@ static int lxcContainerMountFSBind(virDomainFSDefPtr fs, _("Failed to make directory %s readonly"), fs->dst); } - } else { - VIR_DEBUG("Binding %s readwrite", fs->dst); - if (mount(src, fs->dst, NULL, MS_BIND|MS_REMOUNT, NULL) < 0) { - virReportSystemError(errno, - _("Failed to make directory %s readwrite"), - fs->dst); - } } ret = 0;