Re: [PATCH] Don't leak open fd to virsh in libvirt-guests init script

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> > 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.
> > ---
> >  daemon/libvirt-guests.init.in |    2 +-
> >  1 files changed, 1 insertions(+), 1 deletions(-)
> > 
> > diff --git a/daemon/libvirt-guests.init.in b/daemon/libvirt-guests.init.in
> > index 17e6824..f99c070 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 "$@" </dev/null
> 
> ACK.

Thanks, pushed.

Jirka

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]