[libvirt] [PATCH v2] virtlockd: make re-exec more robust
Michael Chapman
mike at very.puzzling.org
Mon Dec 16 23:53:05 UTC 2013
On Wed, 11 Dec 2013, Michael Chapman wrote:
> - Use $XDG_RUNTIME_DIR for re-exec state file when running unprivileged.
>
> - argv[0] may not contain a full path to the binary, however it should
> contain something that can be looked up in the PATH. Use execvp() to
> do path lookup on re-exec.
>
> - As per list discussion [1], ignore --daemon on re-exec.
>
> [1] https://www.redhat.com/archives/libvir-list/2013-December/msg00514.html
>
> Signed-off-by: Michael Chapman <mike at very.puzzling.org>
> ---
> src/locking/lock_daemon.c | 128 ++++++++++++++++++++++++++++++++++------------
> 1 file changed, 94 insertions(+), 34 deletions(-)
Any comments on this patch?
- Michael
More information about the libvir-list
mailing list