[libvirt] Can jobs suck like qemu-pr-helper does be transfered to libvirtd?

Peter Krempa pkrempa at redhat.com
Fri Mar 29 07:36:29 UTC 2019


On Fri, Mar 29, 2019 at 02:21:00 +0000, Zhangbo (Oscar) wrote:

[...]

> >>This does not play well with the fact that processes as the PR helper
> >>are always required.
> >>
> >>Merging them into libvirtd would make the VM stop until libvirtd is
> >>running again. Additionally if any of the operations require persistent
> >>kernel state as e.g. file descriptors, this would be impossible as
> >>stopping libvirtd process would close the FDs which may be then
> >>impossible to reopen properly e.g. due to state.
> >
> >Thanks! Besides these reasons above, will it weaken security if we let libvirtd do
> >these jobs? For example,
> >Such sayings, like "libvirtd would become the focus from attacking forces", make
> >sense?
> 
> If there's no security concern, then, will it be OK to add a new KVM ioctl, which allows
> qemu to ask kvm module to do the high prilidged jobs?

Well there actually is security concern in qemu. Libvirt attempts to run
qemu with the least amount of privileges possible as the 'untrusted'
guest interacts directly with qemu.

That is in the end the reason 'qemu-pr-helper' exists separately.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20190329/7bfdaf17/attachment-0003.sig>


More information about the libvir-list mailing list