Re: [PATCH] libvirtd: create run dir when running at non-root user

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 08/26/2011 03:51 AM, xuhj@xxxxxxxxxxxxxxxxxx wrote:
From: soulxu<soulxu@soulxu-ThinkPad-T410.(none)>


Signed-off-by: Xu He Jie<xuhj@xxxxxxxxxxxxxxxxxx>

When libvirtd is running at non-root user, it won't create ${HOME}/.libvirt.

It will show error message:
17:44:16.838: 7035: error : virPidFileAcquirePath:322 : Failed to open pid file

Thanks for the report and potential patch.


+    old_umask = umask(022);
+    if (mkdir (run_dir, 0755)) {

However, this part is wrong; use virFileMakePath() from util.h to create an arbitrary directory.

--
Eric Blake   eblake@xxxxxxxxxx    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]