Fix 'show policies' in Shorewall6[-lite]

This commit is contained in:
Tom Eastep 2009-11-23 13:50:41 -08:00
parent f186c436d4
commit d3d21d4d18
3 changed files with 11 additions and 0 deletions

View File

@ -10,6 +10,8 @@ Changes in Shorewall 4.4.5
5) Allow specific policy to supersede a wildcard policy.
6) Fix 'show policies' in Shorewall6.
Changes in Shorewall 4.4.4
1) Change STARTUP_LOG and LOG_VERBOSITY in default shorewall6.conf.

View File

@ -191,6 +191,9 @@ Shorewall 4.4.5
contexts. Previously, port 0 was allowed with the result that
invalid iptables-restore input could be generated in some cases.
4) The 'show policies' command now works in Shorewall6 and
Shorewall6-lite.
----------------------------------------------------------------------------
K N O W N P R O B L E M S R E M A I N I N G
----------------------------------------------------------------------------

View File

@ -511,6 +511,12 @@ show_command() {
vardir)
echo $VARDIR;
;;
policies)
[ $# -gt 1 ] && usage 1
echo "$PRODUCT $version Policies at $HOSTNAME - $(date)"
echo
[ -f ${VARDIR}/policies ] && cat ${VARDIR}/policies;
;;
*)
if [ "$PRODUCT" = Shorewall6 ]; then
case $1 in