|
|
7a3408 |
From bb648b91212e2f43ef408e7be7212c60d02203ce Mon Sep 17 00:00:00 2001
|
|
|
7a3408 |
Message-Id: <bb648b91212e2f43ef408e7be7212c60d02203ce@dist-git>
|
|
|
7a3408 |
From: Martin Kletzander <mkletzan@redhat.com>
|
|
|
7a3408 |
Date: Mon, 14 Sep 2015 10:15:27 +0200
|
|
|
7a3408 |
Subject: [PATCH] qemu: Allow others to browse /var/lib/libvirt/qemu
|
|
|
7a3408 |
|
|
|
7a3408 |
Commit f1f68ca33433 tried fixing running multiple domains under various
|
|
|
7a3408 |
users, but if the user can't browse the directory, it's hard for the
|
|
|
7a3408 |
qemu running under that user to create the monitor socket.
|
|
|
7a3408 |
|
|
|
7a3408 |
The permissions need to be fixed in two places in the spec file due to
|
|
|
7a3408 |
support for both installations with and without driver modules.
|
|
|
7a3408 |
|
|
|
7a3408 |
Creating a directory with '$(MKDIR_P) -m' shouldn't fail even on systems
|
|
|
7a3408 |
where autoconf needs to fallback to 'install-sh -d'.
|
|
|
7a3408 |
|
|
|
7a3408 |
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1146886
|
|
|
7a3408 |
|
|
|
7a3408 |
Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
|
|
|
7a3408 |
(cherry picked from commit f05f005c8b0ec8a53bb7fd6da65f4ac08afac858)
|
|
|
7a3408 |
Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
|
|
|
7a3408 |
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
|
|
|
7a3408 |
---
|
|
|
7a3408 |
libvirt.spec.in | 4 ++--
|
|
|
7a3408 |
src/Makefile.am | 2 +-
|
|
|
7a3408 |
2 files changed, 3 insertions(+), 3 deletions(-)
|
|
|
7a3408 |
|
|
|
7a3408 |
diff --git a/src/Makefile.am b/src/Makefile.am
|
|
|
7a3408 |
index 62b8fd6..8c202a5 100644
|
|
|
7a3408 |
--- a/src/Makefile.am
|
|
|
7a3408 |
+++ b/src/Makefile.am
|
|
|
7a3408 |
@@ -2777,7 +2777,7 @@ if WITH_SANLOCK
|
|
|
7a3408 |
$(MKDIR_P) "$(DESTDIR)$(localstatedir)/lib/libvirt/sanlock"
|
|
|
7a3408 |
endif WITH_SANLOCK
|
|
|
7a3408 |
if WITH_QEMU
|
|
|
7a3408 |
- $(MKDIR_P) "$(DESTDIR)$(localstatedir)/lib/libvirt/qemu"
|
|
|
7a3408 |
+ $(MKDIR_P) -m 0751 "$(DESTDIR)$(localstatedir)/lib/libvirt/qemu"
|
|
|
7a3408 |
$(MKDIR_P) "$(DESTDIR)$(localstatedir)/run/libvirt/qemu"
|
|
|
7a3408 |
$(MKDIR_P) "$(DESTDIR)$(localstatedir)/cache/libvirt/qemu"
|
|
|
7a3408 |
$(MKDIR_P) "$(DESTDIR)$(localstatedir)/log/libvirt/qemu"
|
|
|
7a3408 |
--
|
|
|
7a3408 |
2.5.2
|
|
|
7a3408 |
|