Don't pass untrusted arguments to xm info.
[invirt/packages/invirt-remote.git] / host / usr / sbin / invirt-vmcontrol
index 70bff12..9080dfc 100755 (executable)
@@ -12,6 +12,10 @@ ORIGMACHINE="$1"
 ACTION="$2"
 MACHINE="d_$ORIGMACHINE"
 
+xm () {
+    command xm "$@" || exit 35
+}
+
 case "$ACTION" in
     list|vcpu-list|uptime)
         xm "$ACTION" "$MACHINE"