projects
/
invirt/packages/invirt-remote.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Don't pass untrusted arguments to xm info.
[invirt/packages/invirt-remote.git]
/
host
/
usr
/
sbin
/
invirt-vmcontrol
diff --git
a/host/usr/sbin/invirt-vmcontrol
b/host/usr/sbin/invirt-vmcontrol
index
70bff12
..
9080dfc
100755
(executable)
--- a/
host/usr/sbin/invirt-vmcontrol
+++ b/
host/usr/sbin/invirt-vmcontrol
@@
-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"