]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: move temp file of screenshot and memorypeek to per-domain dir
authorPeng Liang <liangpeng10@huawei.com>
Mon, 13 Sep 2021 14:23:46 +0000 (22:23 +0800)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 23 Sep 2021 10:42:26 +0000 (12:42 +0200)
commita50c473ad6c988a249bf79a30fb7c6dc19733347
treefcce8b67d9729c2b3d7bec5917bc7693c87bdfdc
parentddbbbcd9695f2756e23e2e3aecc85b0136c74acf
qemu: move temp file of screenshot and memorypeek to per-domain dir

The temp files of screenshot and memory peek, which are created by QEMU,
are put in the cache directory.  However, the caches of domain
capabilities, which are created and used by libvirtd, are also put in
the cache directory.  In order to make the cache directory more secure,
move the temp files of screenshot and memory peek to per-domain
directory.

Since the temp files are just temporary files and are only used by
libvirtd (libvirtd will delete them after use), the use of screenshot
and memory peek will be affected.

Signed-off-by: Peng Liang <liangpeng10@huawei.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_driver.c