Codebase list libvirt / 43e4ddc
Disable use of namespaces by default Guido Günther 7 years ago
3 changed file(s) with 32 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
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,
66 1 file changed, 1 insertion(+), 1 deletion(-)
77
88 diff --git a/tools/virsh.pod b/tools/virsh.pod
9 index cfa7a24..0940b71 100644
9 index 0e434c0..c35041a 100644
1010 --- a/tools/virsh.pod
1111 +++ b/tools/virsh.pod
1212 @@ -119,7 +119,7 @@ virsh is coming from and which options and driver are compiled in.
1616 Pass-GPG_TTY-env-var-to-the-ssh-binary.patch
1717 openpty-Skip-test-if-no-pty-is-available.patch
1818 test-posix_openpt-don-t-fail-on-EACCESS.patch
19 Disable-use-of-namespaces-by-default.patch