aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYoann Vandoorselaere <yoann@mandriva.com>2000-03-19 16:10:10 +0000
committerYoann Vandoorselaere <yoann@mandriva.com>2000-03-19 16:10:10 +0000
commitd5a4d37160aacc52b9a234fd084b5086db5c9452 (patch)
tree91480ea7af8d9cd1ef58db719d774f8d528168f3
parent35dc5626f088c32d733a96d7c69ab8ab8f484cb2 (diff)
downloadmsec-d5a4d37160aacc52b9a234fd084b5086db5c9452.tar
msec-d5a4d37160aacc52b9a234fd084b5086db5c9452.tar.gz
msec-d5a4d37160aacc52b9a234fd084b5086db5c9452.tar.bz2
msec-d5a4d37160aacc52b9a234fd084b5086db5c9452.tar.xz
msec-d5a4d37160aacc52b9a234fd084b5086db5c9452.zip
*** empty log message ***
-rw-r--r--ChangeLog4
-rwxr-xr-xcron-sh/security.sh15
-rw-r--r--msec.spec6
-rw-r--r--src/msec_find/find.c5
4 files changed, 20 insertions, 10 deletions
diff --git a/ChangeLog b/ChangeLog
index 5fb81f9..1186eef 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2000-03-16 Yoann Vandoorselaere <yoann@mandrakesoft.com>
+ * security.sh : export *_TODAY variable to be used by msec_find.
+ * find.c : removed a debuging printf.
+
2000-03-09 Yoann Vandoorselaere <yoann@mandrakesoft.com>
* custom.sh : added a patch from Havard Bell.
diff --git a/cron-sh/security.sh b/cron-sh/security.sh
index ebe71de..b949028 100755
--- a/cron-sh/security.sh
+++ b/cron-sh/security.sh
@@ -7,25 +7,25 @@ fi
. /etc/security/msec/security.conf
-SUID_ROOT_TODAY="/var/log/security/suid_root.today"
+export SUID_ROOT_TODAY="/var/log/security/suid_root.today"
SUID_ROOT_YESTERDAY="/var/log/security/suid_root.yesterday"
SUID_ROOT_DIFF="/var/log/security/suid_root.diff"
-SUID_GROUP_TODAY="/var/log/security/suid_group.today"
+export SUID_GROUP_TODAY="/var/log/security/suid_group.today"
SUID_GROUP_YESTERDAY="/var/log/security/suid_group.yesterday"
SUID_GROUP_DIFF="/var/log/security/suid_group.diff"
-SUID_MD5_TODAY="/var/log/security/suid_md5.today"
+export SUID_MD5_TODAY="/var/log/security/suid_md5.today"
SUID_MD5_YESTERDAY="/var/log/security/suid_md5.yesterday"
SUID_MD5_DIFF="/var/log/security/suid_md5.diff"
-OPEN_PORT_TODAY="/var/log/security/open_port.today"
+export OPEN_PORT_TODAY="/var/log/security/open_port.today"
OPEN_PORT_YESTERDAY="/var/log/security/open_port.yesterday"
OPEN_PORT_DIFF="/var/log/security/open_port.diff"
-WRITEABLE_TODAY="/var/log/security/writeable.today"
+export WRITEABLE_TODAY="/var/log/security/writeable.today"
WRITEABLE_YESTERDAY="/var/log/security/writeable.yesterday"
WRITEABLE_DIFF="/var/log/security/writeable.diff"
-UNOWNED_USER_TODAY="/var/log/security/unowned_user.today"
+export UNOWNED_USER_TODAY="/var/log/security/unowned_user.today"
UNOWNED_USER_YESTERDAY="/var/log/security/unowned_user.yesterday"
UNOWNED_USER_DIFF="/var/log/security/unowned_user.diff"
-UNOWNED_GROUP_TODAY="/var/log/security/unowned_group.today"
+export UNOWNED_GROUP_TODAY="/var/log/security/unowned_group.today"
UNOWNED_GROUP_YESTERDAY="/var/log/security/unowned_group.yesterday"
UNOWNED_GROUP_DIFF="/var/log/security/unowned_group.diff"
@@ -75,6 +75,7 @@ netstat -pvlA inet 2> /dev/null > ${OPEN_PORT_TODAY};
# Hard disk related file check; the less priority the better...
nice --adjustment=+19 /usr/bin/msec_find ${DIR}
+
sort < ${SUID_ROOT_TODAY} > ${SUID_ROOT_TODAY}.tmp
sort < ${SUID_GROUP_TODAY} > ${SUID_GROUP_TODAY}.tmp
sort < ${WRITEABLE_TODAY} > ${WRITEABLE_TODAY}.tmp
diff --git a/msec.spec b/msec.spec
index cab4af4..c094d51 100644
--- a/msec.spec
+++ b/msec.spec
@@ -1,6 +1,6 @@
# do not modify Version below, modify it in Makefile (see CVS)
%define version 0.10
-%define release 3mdk
+%define release 4mdk
Summary: Security Level & Program for the Linux Mandrake distribution
Name: msec
@@ -49,6 +49,10 @@ rm -rf $RPM_BUILD_ROOT
%config /etc/security/msec
%changelog
+* Thu Mar 16 2000 Yoann Vandoorselaere <yoann@mandrakesoft.com>
+- security.sh : export *_TODAY variable to be used by msec_find.
+- find.c : removed a debuging printf.
+
* Tue Mar 09 2000 Yoann Vandoorselaere <yoann@mandrakesoft.com> 0.10-1mdk
- custom.sh : added a patch from Havard Bell.
- custom.sh : check if libsafe is installed before asking if the user want to use it.
diff --git a/src/msec_find/find.c b/src/msec_find/find.c
index 274e8ff..18c4261 100644
--- a/src/msec_find/find.c
+++ b/src/msec_find/find.c
@@ -92,9 +92,10 @@ static int traverse(const char *file, const struct stat *sb, int flag, struct FT
case FTW_F:
/*
* Regular file
+ *
+ * printf("%s\n", file);
*/
- printf("%s\n", file);
-
+
/*
* Is writeable check.
*/