Re: [PATCH 2/5] virtiofsd: create lock/pid file in per user cache dir

2020-07-30 Thread Vivek Goyal
On Thu, Jul 30, 2020 at 09:59:37AM +0100, Daniel P. Berrangé wrote: > On Wed, Jul 29, 2020 at 06:14:07PM -0400, Vivek Goyal wrote: > > Right now we create lock/pid file in /usr/local/var/... and unprivliged > > user does not have access to create files there. > > > > So create this file in per us

Re: [PATCH 2/5] virtiofsd: create lock/pid file in per user cache dir

2020-07-30 Thread Daniel P . Berrangé
On Wed, Jul 29, 2020 at 06:14:07PM -0400, Vivek Goyal wrote: > Right now we create lock/pid file in /usr/local/var/... and unprivliged > user does not have access to create files there. > > So create this file in per user cache dir as queried as specified > by environment variable XDG_RUNTIME_DIR.

[PATCH 2/5] virtiofsd: create lock/pid file in per user cache dir

2020-07-29 Thread Vivek Goyal
Right now we create lock/pid file in /usr/local/var/... and unprivliged user does not have access to create files there. So create this file in per user cache dir as queried as specified by environment variable XDG_RUNTIME_DIR. Note: "su $USER" does not update XDG_RUNTIME_DIR and it still points