summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
45e13c4)
comfortable with them sitting on HEAD when I don't have time to test
them.
svn path=/trunk/packages/invirt-remote/; revision=2097
-invirt-remote (0.3.2) unstable; urgency=low
-
- * Don't pass untrusted arguments to xm info.
- * Exit with a non-0 error code on the host if there's an error.
- * Always exec instead of fork&exec on the remctl server so that return
- codes get passed on.
-
- -- Evan Broder <broder@mit.edu> Sat, 31 Jan 2009 03:51:54 -0500
-
invirt-remote (0.3.1) unstable; urgency=low
* invirt.remote.bcast: provide stderr text when remctl fails
invirt-remote (0.3.1) unstable; urgency=low
* invirt.remote.bcast: provide stderr text when remctl fails
COMMAND=/usr/sbin/invirt-listvms
;;
info)
COMMAND=/usr/sbin/invirt-listvms
;;
info)
;;
vnccert)
COMMAND=/usr/bin/invirt-vnc-getcert
;;
vnccert)
COMMAND=/usr/bin/invirt-vnc-getcert
-exec "$COMMAND" "$SERVICE" "$@"
+$COMMAND "$SERVICE" "$@"
ACTION="$2"
MACHINE="d_$ORIGMACHINE"
ACTION="$2"
MACHINE="d_$ORIGMACHINE"
-xm () {
- command xm "$@" || exit 35
-}
-
case "$ACTION" in
list|vcpu-list|uptime)
xm "$ACTION" "$MACHINE"
case "$ACTION" in
list|vcpu-list|uptime)
xm "$ACTION" "$MACHINE"
case "$TYPE/$SERVICE" in
web/listvms )
case "$TYPE/$SERVICE" in
web/listvms )
- exec invirt-remote-listvms "$@" ;;
+ invirt-remote-listvms "$@" ;;
- exec invirt-remote-vnccert "$@" ;;
+ invirt-remote-vnccert "$@" ;;
- exec invirt-remctl-help ;;
control/create|control/install )
control/create|control/install )
- exec invirt-remote-create "$SERVICE" "$MACHINE" "$@" ;;
+ invirt-remote-create "$SERVICE" "$MACHINE" "$@" ;;
control/listhost|control/list-host )
control/listhost|control/list-host )
- exec invirt-remote-listhost "$MACHINE" "$@" ;;
+ invirt-remote-listhost "$MACHINE" "$@" ;;
control/* )
# Everything but create must go where the VM is already running.
control/* )
# Everything but create must go where the VM is already running.
- exec invirt-remote-control "$MACHINE" "$SERVICE" "$@" ;;
+ invirt-remote-control "$MACHINE" "$SERVICE" "$@" ;;
- exec remctl "$(invirt-getconf hosts.0.hostname)" remote "$TYPE" "$SERVICE" "$@" ;;
+ remctl "$(invirt-getconf hosts.0.hostname)" remote "$TYPE" "$SERVICE" "$@" ;;