git://git.onelab.eu
/
vsys-scripts.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
ab1e606
)
Filter by jail_id (corresponding to the PlanetLab slice_id).
author
Marta Carbone
<marta@prova.iet.unipi.it>
Mon, 23 Nov 2009 19:19:09 +0000
(19:19 +0000)
committer
Marta Carbone
<marta@prova.iet.unipi.it>
Mon, 23 Nov 2009 19:19:09 +0000
(19:19 +0000)
exec/ipfw-be
patch
|
blob
|
history
diff --git
a/exec/ipfw-be
b/exec/ipfw-be
index
22b02db
..
cc200c0
100755
(executable)
--- 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
;;
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 || \
${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")
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}"
[ "$type" = "rules" ] && ${IPFW} show && return 0
[ "$type" = "pipes" ] && ${IPFW} pipe show && return 0
abort "'show' should be followed by {rules|pipes}"