Skip to content

Commit

Permalink
Update for stig-fix-1.8.1.el6.noarch.rpm
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed Dec 20, 2014
1 parent a353cc1 commit b920031
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
14 changes: 14 additions & 0 deletions misc/ctrlaltdel.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/sh

cat <<EOF > /etc/init/control-alt-delete.conf
control-alt-delete - emergency keypress handling
#
# This task is run whenever the Control-Alt-Delete key combination is
# pressed. Usually used to shut down the machine.
#
# Do not edit this file directly. If you want to change the behaviour,
# please create a file control-alt-delete.override and put your changes there.
start on control-alt-delete
exec /usr/bin/logger -p security.info "Control-Alt-Delete pressed"
EOF
8 changes: 7 additions & 1 deletion misc/services.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ for SRV in $OFFSRV; do
done

### Enable Services
ONSRV="auditd postfix iptables rsyslog"
ONSRV="postfix iptables"

for SRV in $ONSRV; do
if [ `/sbin/chkconfig --list | grep -c $SRV` -gt 0 ]; then
Expand All @@ -26,6 +26,12 @@ for SRV in $ONSRV; do
fi
done

# Auditing and Syslog should always be on...
/sbin/chkconfig --level 0123456 auditd on &> /dev/null
/sbin/service auditd start &> /dev/null
/sbin/chkconfig --level 0123456 rsyslog on &> /dev/null
/sbin/service rsyslog start &> /dev/null

### IPv6 - Requires ip6tables
`grep NETWORKING_IPV6 /etc/sysconfig/network | grep -q yes`
if [ $? -eq 0 ]; then
Expand Down

0 comments on commit b920031

Please sign in to comment.