Re: [Xen-devel] [PATCH 2/5] tools/dm_restrict: Ask QEMU to chroot

2018-10-26 Thread Ian Jackson
George Dunlap writes ("[PATCH 2/5] tools/dm_restrict: Ask QEMU to chroot"): > When dm_restrict is enabled, ask QEMU to chroot into an empty directory. > > * Create /var/run/qemu/root-domid (deleting the old one if it's there) > * Pass the -chroot option to QEMU > > Rather than running `rm -rf` on

[Xen-devel] [PATCH 2/5] tools/dm_restrict: Ask QEMU to chroot

2018-10-05 Thread George Dunlap
When dm_restrict is enabled, ask QEMU to chroot into an empty directory. * Create /var/run/qemu/root-domid (deleting the old one if it's there) * Pass the -chroot option to QEMU Rather than running `rm -rf` on the directory before creating it (since there is no library function to do this), simpl