[Libguestfs] [PATCH v3 2/4] inspection: Add inspection rules and supporting code.