From: Jiri Denemark Date: Tue, 22 Jun 2010 14:47:02 +0000 (+0200) Subject: Don't leak open fd to virsh in libvirt-guests init script X-Git-Tag: v0.8.2~53 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6c267f01b1db9756779ad897588dbcf2ea95fcc4;p=thirdparty%2Flibvirt.git Don't leak open fd to virsh in libvirt-guests init script Running virsh while having /var/lib/libvirt/libvirt-guests file open makes SELinux emit messages about preventing virsh from reading that file. Since virsh doesn't really want to read anything, it's better to run it with /dev/null on stdin to prevent those messages. --- diff --git a/daemon/libvirt-guests.init.in b/daemon/libvirt-guests.init.in index 17e68249ef..f99c0705c0 100644 --- a/daemon/libvirt-guests.init.in +++ b/daemon/libvirt-guests.init.in @@ -61,7 +61,7 @@ run_virsh() { conn="-c $uri" fi - virsh $conn "$@" + virsh $conn "$@"