mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-02 01:45:17 +00:00
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.
This commit is contained in:
parent
cab5a52aa2
commit
6c267f01b1
@ -61,7 +61,7 @@ run_virsh() {
|
||||
conn="-c $uri"
|
||||
fi
|
||||
|
||||
virsh $conn "$@"
|
||||
virsh $conn "$@" </dev/null
|
||||
}
|
||||
|
||||
run_virsh_c() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user