aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rwxr-xr-xinit-sh/file_perm.sh6
-rwxr-xr-xinit-sh/level3.sh2
-rwxr-xr-xinit-sh/level4.sh2
-rwxr-xr-xinit-sh/level5.sh2
-rw-r--r--msec.spec5
6 files changed, 9 insertions, 13 deletions
diff --git a/ChangeLog b/ChangeLog
index 46e5a14..025a4e3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+1999-12-08 Yoann Vandoorselaere <yoan@mandrakesoft.com>
+ * level[1-3].sh: Changed crontab call to file_check.sh
+ from every hour to every midnight ( bug reported by axalon ).
+ * file_check.sh: clean up.
+
1999-12-08 Chmouel Boudjnah <chmouel@mandrakesoft.com>
* Makefile (rpm): target for rpm.
diff --git a/init-sh/file_perm.sh b/init-sh/file_perm.sh
index be834b7..acce5c0 100755
--- a/init-sh/file_perm.sh
+++ b/init-sh/file_perm.sh
@@ -5,11 +5,7 @@ IFS="
echo -n "Setting files permissions : "
-for line in `cat /$1`; do
- file=`echo ${line} | awk '{print $1}'`
- owner=`echo ${line} | awk '{print $2}'`
- perm=`echo ${line} | awk '{print $3}'`
-
+cat $1 | while read file owner perm; do
if [ -a "${file}" ]; then
if [ ${owner} != "current" ]; then
chown ${owner} ${file}
diff --git a/init-sh/level3.sh b/init-sh/level3.sh
index 42b4542..5859689 100755
--- a/init-sh/level3.sh
+++ b/init-sh/level3.sh
@@ -58,7 +58,7 @@ echo -e "\t- Security warning in syslog : \"yes\" :"
# Crontab
echo "Adding permission check in crontab (scheduled every midnight) :"
-AddRules "0 0-23 * * * root nice --adjustment=+19 /etc/security/msec/cron-sh/file_check.sh" /etc/crontab
+AddRules "0 0 * * * root nice --adjustment=+19 /etc/security/msec/cron-sh/file_check.sh" /etc/crontab
echo -n "Running lilo to record new config : "
/sbin/lilo >& /dev/null
diff --git a/init-sh/level4.sh b/init-sh/level4.sh
index 5f2a79c..00ea93d 100755
--- a/init-sh/level4.sh
+++ b/init-sh/level4.sh
@@ -71,7 +71,7 @@ echo "Adding promisc check in crontab (scheduled every minutes) :"
AddRules "*/1 * * * * root nice --adjustment=+19 /etc/security/msec/cron-sh/promisc_check.sh" /etc/crontab
echo "Adding permission check in crontab (scheduled every midnight) :"
-AddRules "0 0-23 * * * root nice --adjustment=+19 /etc/security/msec/cron-sh/file_check.sh" /etc/crontab
+AddRules "0 0 * * * root nice --adjustment=+19 /etc/security/msec/cron-sh/file_check.sh" /etc/crontab
# Do you want a password ?
LiloUpdate;
diff --git a/init-sh/level5.sh b/init-sh/level5.sh
index 6b90e59..272267f 100755
--- a/init-sh/level5.sh
+++ b/init-sh/level5.sh
@@ -63,7 +63,7 @@ echo "Adding promisc check in crontab (scheduled every minutes) :"
AddRules "*/1 * * * * root nice --adjustment=+19 /etc/security/msec/cron-sh/promisc_check.sh" /etc/crontab
echo "Adding permission check in crontab (schedued every midnight) :"
-AddRules "0 0-23 * * * root nice --adjustment=+19 /etc/security/msec/cron-sh/file_check.sh" /etc/crontab
+AddRules "0 0 * * * root nice --adjustment=+19 /etc/security/msec/cron-sh/file_check.sh" /etc/crontab
###################################################
# Wanna a password ?
diff --git a/msec.spec b/msec.spec
index 2759220..934be3c 100644
--- a/msec.spec
+++ b/msec.spec
@@ -39,11 +39,6 @@ rm -rf $RPM_BUILD_ROOT
- Various (Makefile|specfiles) clean-up.
- insert doc.
-* Wed Dec 8 1999 Pixel <pixel@linux-mandrake.com>
-- fixed a yoyosuk in promisc_check cron (have to teach him how to use an editor!)
-- source in .bz2 (yoyosuk2)
-- strip binary (yoyosuk3)
-
* Mon Dec 6 1999 Yoann Vandoorselaere <yoann@mandrakesoft.com>
- Released 0.5
- Divided security check into 2 files :