[libvirt] [PATCH 11/17] util: Introduce libvirt_udevhelper

Daniel P. Berrange berrange at redhat.com
Wed Oct 26 15:39:35 UTC 2016


On Wed, Oct 26, 2016 at 02:36:58PM +0200, Michal Privoznik wrote:
> This is a small helper intended to be run by udev. On its input
> (either as the only command line argument or in DEVNODE
> environment vairable) it is given a device and on the output it
> will either put nothing (meaning the device is not used by any of
> the libvirt domains), or it will print out security labels in the
> following form:
> 
>   UID GID SELABEL

How is this intended to be actually used ? ie what udev rule are
you creating along with this ?  IMHO we just want the helper to
indicate that udev should not do anything to the device - we should
not need udev to ever set labels itself as libvirt has already set
them - we just don't want udev to remove them. IOW, I don't see the
need to print out this info at all.


Regards,
Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://entangle-photo.org       -o-    http://search.cpan.org/~danberr/ :|




More information about the libvir-list mailing list