From: Marta Carbone Date: Mon, 23 Nov 2009 19:19:09 +0000 (+0000) Subject: Filter by jail_id (corresponding to the PlanetLab slice_id). X-Git-Tag: vsys-scripts-0.95-12~2 X-Git-Url: http://git.onelab.eu/?p=vsys-scripts.git;a=commitdiff_plain;h=864d8cd653876ccd7f809b25ec423698dd6a9f26 Filter by jail_id (corresponding to the PlanetLab slice_id). --- diff --git a/exec/ipfw-be b/exec/ipfw-be index 22b02db..cc200c0 100755 --- a/exec/ipfw-be +++ b/exec/ipfw-be @@ -182,8 +182,8 @@ add_rule() { # new_rule slice_id type arg rule pipe_base timeout ;; esac - rule_in="pipe ${pipe_in} in uid $slice_id ${rule_in} // $type $arg" - rule_out="pipe ${pipe_out} out uid $slice_id ${rule_out} // $type $arg" + rule_in="pipe ${pipe_in} in jail $slice_id ${rule_in} // $type $arg" + rule_out="pipe ${pipe_out} out jail $slice_id ${rule_out} // $type $arg" ${IPFW_CHECK} add ${rule_nr} $rule_in > /dev/null || \ abort "ipfw syntax error $rule_in" ${IPFW_CHECK} add ${rule_nr} $rule_out > /dev/null || \ @@ -351,7 +351,7 @@ process() { do_release ${SLICE_ID} $type $args ;; x"show") - # XXX should filter on uid + # XXX should filter on jail [ "$type" = "rules" ] && ${IPFW} show && return 0 [ "$type" = "pipes" ] && ${IPFW} pipe show && return 0 abort "'show' should be followed by {rules|pipes}"