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

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



On 08/26/2011 03:51 AM, xuhj linux vnet ibm com wrote:
From: soulxu<soulxu soulxu-ThinkPad-T410 (none)>


Signed-off-by: Xu He Jie<xuhj linux vnet ibm com>

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 redhat com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org


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