2008/11/10 Darryl Pierce <span dir="ltr"><<a href="mailto:dpierce@redhat.com">dpierce@redhat.com</a>></span><br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
-----BEGIN PGP SIGNED MESSAGE-----<br>
Hash: SHA1<br>
<br>
I have a startup script that runs a second script to do some work on the<br>
system. This second script calls:<br>
<br>
virsh -c qemu:///system --readonly nodeinfo<br>
<br>
and then scrapes from that the amount of free memory.<br>
<br>
When I run this from my init script, I get:<br>
<br>
libvir: Remote error : unable to connect to<br>
'/var/run/libvirt/libvirt-sock-ro': Permission denied<br>
<br>
But if I run the second script itself directly (outside of the init<br>
script) it works correctly.<br>
</blockquote></div><br>first guess: SELinux - init scripts run in separate init_t domain, you need to add selinux role transition rule<br><br>