[libvirt PATCH] util: add access check for hooks to fix running as non-root