On Thu, Oct 27, 2016 at 2:48 PM, Daniel P. Berrange <berrange(a)redhat.com> wrote:
We absolutely don't want to be delegating permissions
setting/labelling
to udev & waiting for it to complete asychronously in the background.
That leads to two completely different approaches for labelling files
vs block devices making debugging harder and the overall system more
complex & error prone.
libvirtd would chown and relabel but it would also trigger change
event after it populates devices.udev. To make sure any change event
that was possibly running before won't change permissions back.
Waiting will be synchronous on libvirtd side. I admit it is a bit ugly
but I think there is no other way how to solve this problem.
Michal