Skip to content

Commit

Permalink
Optimizational function for 8.3.3 8.3.6
Browse files Browse the repository at this point in the history
  • Loading branch information
Samson-W committed May 21, 2019
1 parent 25c083a commit eea44e5
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 6 deletions.
20 changes: 16 additions & 4 deletions bin/hardening/8.3.3_configure_syslog-ng.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,29 @@ set -u # One variable unset, it's over
HARDENING_LEVEL=3

SERVICE_NAME="syslog-ng"
PACKAGE_R='rsyslog'

# This function will be called if the script status is on enabled / audit mode
audit () {
info "Ensure default and local facilities are preserved on the system"
info "No measure here, please review the file by yourself"
is_pkg_installed $PACKAGE_R
if [ $FNRET = 0 ]; then
ok "$PACKAGE_R has installed, so pass."
FNRET=0
else
info "Ensure default and local facilities are preserved on the system"
info "No measure here, please review the file by yourself"
fi
}

# This function will be called if the script status is on enabled mode
apply () {
info "Ensure default and local facilities are preserved on the system"
info "No measure here, please review the file by yourself"
is_pkg_installed $PACKAGE_R
if [ $FNRET = 0 ]; then
ok "$PACKAGE_R has installed, so pass."
else
info "Ensure default and local facilities are preserved on the system"
info "No measure here, please review the file by yourself"
fi
}

# This function will check config parameters required
Expand Down
16 changes: 14 additions & 2 deletions bin/hardening/8.3.6_remote_syslog-ng_acl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,27 @@ set -e # One error, it's over
set -u # One variable unset, it's over

HARDENING_LEVEL=3
PACKAGE_R='rsyslog'

# This function will be called if the script status is on enabled / audit mode
audit () {
info "Not implemented yet"
is_pkg_installed $PACKAGE_R
if [ $FNRET = 0 ]; then
ok "$PACKAGE_R has installed, so pass."
FNRET=0
else
info "Not implemented yet"
fi
}

# This function will be called if the script status is on enabled mode
apply () {
info "Not implemented yet"
is_pkg_installed $PACKAGE_R
if [ $FNRET = 0 ]; then
ok "$PACKAGE_R has installed, so pass."
else
info "Not implemented yet"
fi
}

# This function will check config parameters required
Expand Down

0 comments on commit eea44e5

Please sign in to comment.