From 5a525134ea7112dfef747df267add63f66240619 Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Tue, 3 Nov 2009 09:34:21 -0800 Subject: [PATCH] Be sure that startup log is secured 0600 --- Shorewall/Perl/prog.footer | 2 ++ Shorewall/Perl/prog.footer6 | 2 ++ 2 files changed, 4 insertions(+) diff --git a/Shorewall/Perl/prog.footer b/Shorewall/Perl/prog.footer index 09494862b..2c1897ad8 100644 --- a/Shorewall/Perl/prog.footer +++ b/Shorewall/Perl/prog.footer @@ -27,6 +27,8 @@ fi initialize if [ -n "$STARTUP_LOG" ]; then + touch $STARTUP_LOG + chmod 0600 $STARTUP_LOG if [ ${SHOREWALL_INIT_SCRIPT:-0} -eq 1 ]; then # # We're being run by a startup script that isn't redirecting STDOUT diff --git a/Shorewall/Perl/prog.footer6 b/Shorewall/Perl/prog.footer6 index 2ad724998..f41bef680 100644 --- a/Shorewall/Perl/prog.footer6 +++ b/Shorewall/Perl/prog.footer6 @@ -27,6 +27,8 @@ fi initialize if [ -n "$STARTUP_LOG" ]; then + touch $STARTUP_LOG + chmod 0600 $STARTUP_LOG if [ ${SHOREWALL_INIT_SCRIPT:-0} -eq 1 ]; then # # We're being run by a startup script that isn't redirecting STDOUT