[libvirt] [patch]make libvirt run dir accessable for applications
Royce Lv
lvroyce0210 at gmail.com
Mon Jun 4 12:56:36 UTC 2012
vdsm failed to connect to libvirt because of can't access
/var/run/libvirt,caused by libvirt create this dir with umask(077)
change the create umask to 022:
https://bugzilla.redhat.com/show_bug.cgi?id=828073
Signed-off-by: lvroyce <lvroyce at linux.vnet.ibm.com>
---
daemon/libvirtd.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/daemon/libvirtd.c b/daemon/libvirtd.c
index c74cd43..6095072 100644
--- a/daemon/libvirtd.c
+++ b/daemon/libvirtd.c
@@ -293,7 +293,7 @@ daemonUnixSocketPaths(struct daemonConfig *config,
if (!(rundir = virGetUserRuntimeDirectory()))
goto error;
- old_umask = umask(077);
+ old_umask = umask(022);
if (virFileMakePath(rundir) < 0) {
umask(old_umask);
goto error;
--
1.7.7.6
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20120604/05c75182/attachment-0001.htm>
More information about the libvir-list
mailing list