diff options
author | Yoann Vandoorselaere <yoann@mandriva.com> | 2000-03-07 16:45:04 +0000 |
---|---|---|
committer | Yoann Vandoorselaere <yoann@mandriva.com> | 2000-03-07 16:45:04 +0000 |
commit | 7b7859e7b69b54e30eb181857e608f5cccce999a (patch) | |
tree | 56ac44e36fe8e86506db726b5e54ebc9e3f82222 /init-sh/level5.sh | |
parent | e67d4c05d0d218ede7f02ffc9b86dc2c95f75d1d (diff) | |
download | msec-7b7859e7b69b54e30eb181857e608f5cccce999a.tar msec-7b7859e7b69b54e30eb181857e608f5cccce999a.tar.gz msec-7b7859e7b69b54e30eb181857e608f5cccce999a.tar.bz2 msec-7b7859e7b69b54e30eb181857e608f5cccce999a.tar.xz msec-7b7859e7b69b54e30eb181857e608f5cccce999a.zip |
*** empty log message ***
Diffstat (limited to 'init-sh/level5.sh')
-rwxr-xr-x | init-sh/level5.sh | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/init-sh/level5.sh b/init-sh/level5.sh index 9e8af53..59dc413 100755 --- a/init-sh/level5.sh +++ b/init-sh/level5.sh @@ -5,8 +5,11 @@ # Writen by Vandoorselaere Yoann <yoann@mandrakesoft.com> # -if [[ -f /etc/security/msec/init-sh/lib.sh ]]; then - . /etc/security/msec/init-sh/lib.sh +if [[ -f /usr/share/msec/lib.sh ]]; then + . /usr/share/msec/lib.sh +else + echo "Can't find /usr/share/msec/lib.sh, exiting." + exit 1 fi echo -e "Changing attribute of /var/log/* to append only...\n" @@ -60,10 +63,10 @@ echo -e "\t- Security warning in syslog : yes." ################ Crontab things ################### # Check every 1 minutes for promisc problem echo "Adding promisc check in crontab (scheduled every minutes) :" -AddRules "*/1 * * * * root /etc/security/msec/cron-sh/promisc_check.sh" /etc/crontab +AddRules "*/1 * * * * root /usr/share/msec/promisc_check.sh" /etc/crontab echo "Adding \"diff\" & \"global\" security check in crontab (scheduled every midnight) :" -AddRules "0 0 * * * root /etc/security/msec/cron-sh/security.sh" /etc/crontab +AddRules "0 0 * * * root /usr/share/msec/security.sh" /etc/crontab ################################################### @@ -83,7 +86,7 @@ IFS=" export SECURE_LEVEL=5 echo -n "Disabling all service, except : {" for service in `chkconfig --list | awk '{print $1}'`; do - if grep -qx ${service} /etc/security/msec/init-sh/server.5; then + if grep -qx ${service} /etc/security/msec/server.5; then echo -n " ${service}" fi done |