aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYoann Vandoorselaere <yoann@mandriva.com>1999-12-08 10:04:25 +0000
committerYoann Vandoorselaere <yoann@mandriva.com>1999-12-08 10:04:25 +0000
commitf4ba01f701a60e56b8d9f1a1322f10a6544e3602 (patch)
tree70d51a08f0afa917b2eaf548c008492cd04f1d92
parent5479a5bebbb93b523626bc9fbc720c6572d71def (diff)
downloadmsec-f4ba01f701a60e56b8d9f1a1322f10a6544e3602.tar
msec-f4ba01f701a60e56b8d9f1a1322f10a6544e3602.tar.gz
msec-f4ba01f701a60e56b8d9f1a1322f10a6544e3602.tar.bz2
msec-f4ba01f701a60e56b8d9f1a1322f10a6544e3602.tar.xz
msec-f4ba01f701a60e56b8d9f1a1322f10a6544e3602.zip
*** empty log message ***
-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 :