Disable use of namespaces by default
Guido Günther
7 years ago
|
0 |
From: "Daniel P. Berrange" <berrange@redhat.com>
|
|
1 |
Date: Wed, 18 Jan 2017 10:48:12 +0000
|
|
2 |
Subject: Disable use of namespaces by default
|
|
3 |
|
|
4 |
When namespaces are enabled there is currently breakage when
|
|
5 |
using disk hotplug and when using AppArmor
|
|
6 |
|
|
7 |
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
|
|
8 |
---
|
|
9 |
src/qemu/qemu_conf.c | 7 -------
|
|
10 |
1 file changed, 7 deletions(-)
|
|
11 |
|
|
12 |
diff --git a/src/qemu/qemu_conf.c b/src/qemu/qemu_conf.c
|
|
13 |
index 6613d59..aa05b46 100644
|
|
14 |
--- a/src/qemu/qemu_conf.c
|
|
15 |
+++ b/src/qemu/qemu_conf.c
|
|
16 |
@@ -317,13 +317,6 @@ virQEMUDriverConfigPtr virQEMUDriverConfigNew(bool privileged)
|
|
17 |
if (!(cfg->namespaces = virBitmapNew(QEMU_DOMAIN_NS_LAST)))
|
|
18 |
goto error;
|
|
19 |
|
|
20 |
-#if defined(__linux__)
|
|
21 |
- if (privileged &&
|
|
22 |
- virProcessNamespaceAvailable(VIR_PROCESS_NAMESPACE_MNT) == 0 &&
|
|
23 |
- virBitmapSetBit(cfg->namespaces, QEMU_DOMAIN_NS_MOUNT) < 0)
|
|
24 |
- goto error;
|
|
25 |
-#endif /* defined(__linux__) */
|
|
26 |
-
|
|
27 |
#ifdef DEFAULT_LOADER_NVRAM
|
|
28 |
if (virFirmwareParseList(DEFAULT_LOADER_NVRAM,
|
|
29 |
&cfg->firmwares,
|
6 | 6 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
7 | 7 |
|
8 | 8 |
diff --git a/tools/virsh.pod b/tools/virsh.pod
|
9 | |
index cfa7a24..0940b71 100644
|
|
9 |
index 0e434c0..c35041a 100644
|
10 | 10 |
--- a/tools/virsh.pod
|
11 | 11 |
+++ b/tools/virsh.pod
|
12 | 12 |
@@ -119,7 +119,7 @@ virsh is coming from and which options and driver are compiled in.
|
16 | 16 |
Pass-GPG_TTY-env-var-to-the-ssh-binary.patch
|
17 | 17 |
openpty-Skip-test-if-no-pty-is-available.patch
|
18 | 18 |
test-posix_openpt-don-t-fail-on-EACCESS.patch
|
|
19 |
Disable-use-of-namespaces-by-default.patch
|