提交 6c267f01 编写于 作者: J Jiri Denemark

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.
上级 cab5a52a
......@@ -61,7 +61,7 @@ run_virsh() {
conn="-c $uri"
fi
virsh $conn "$@"
virsh $conn "$@" </dev/null
}
run_virsh_c() {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册