source: trunk/docs/Changelog@ 156

Last change on this file since 156 was 156, checked in by katerina, 17 years ago

Put result vector of rng in skey struct, fix HP-UX compile error.

File size: 76.9 KB
Line 
12.4.2:
2 * put result vector of rng in skey struct
3 * fix more compiler warnings, and a potential (compiler-dependent)
4 NULL dereference in the unix entropy collector
5 * fix some compiler warnings
6 * use -D_FORTIFY_SOURCE=1 -fstack-protector-all instead
7 of -fstack-protector
8 * always add PTHREAD_CFLAGS to LDFLAGS
9 * sh_tiger0.c: checksum functions return length of file hashed,
10 needed to fix GrowingLogfile bug (researched by
11 siim at p6drad dash teel dot net)
12 * sh_static.c: fix more 'label at end of compound statement'
13 (SH_MUTEX_UNLOCK closing brace; reported anonymously)
14 * make sh_hash.c thread-safe
15 * remove plenty of tiny allocations
16 * improve sh_mem_dump
17 * modify port check to run as thread
18 * new option PortCheckSkip to skip ports
19 * fix unsetting of sh_thread_pause_flag (was too early)
20
212.4.1a:
22 * fix overwrite of ErrFlags (functionality bug)
23
242.4.1:
25 * security fix: regression in the seeding routine for the PRNG
26 (detected by C. Mueller)
27 * regression test added for PRNG seeding routine
28 * fix problem with PCI ROM check (spurious messages about modified
29 timestamps, reported by S. Clormann)
30
312.4.0a:
32 * fix compile failure with --enable-static (reported by S. Clormann)
33 * fix potential deadlock if SIGHUP is received while suspended
34
352.4.0:
36 * eliminate alarm() for I/O timeout (replaced by select)
37 * use getgrgid_r, getpwnam_r, getpwuid_r, gmtime_r, localtime_r,
38 rand_r, strtok_r if available
39 * protect readdir(), getpwent(), gethostname() with mutexes
40 (readdir_r considered harmful)
41 * make checksum/hash, entropy, rng functions reentrant
42 * use thread-specific conversion buffer for globber()
43 * fixed compile problems and problems with test suite
44 * modify login watch to run as thread
45 * modify process check to run as thread
46
472.3.8 (03-10-2007):
48 * new option PortCheckIgnore = interface:portlist
49
502.3.7 (13-09-2007):
51 * Makefile.in: fix 'make deb' target, wrong name of config file
52 written to debian/conffiles (reported by marc)
53 * configure.ac: fix incorrect order of with-prelude, enable-static
54 (libprelude test was always without -static)
55
562.3.6 (06-09-2007):
57 * added yuleadmin.pl script contributed by Riccardo Murri
58 * fix compile error with -f-stack-protector on some systems (reported
59 by marc); we now check for libssp
60 * fix local DoS attack on BSD systems lacking getpeereid() (reported
61 by Rob Holland).
62 * fix yulectl password reading from $HOME/.yulectl_cred, erroneously
63 rejected passwords with exactly 14 chars (reported by Jerry Brown)
64 * introduce 'fflags' flag for suid files to detect new files already
65 found in regular file check (problem reported by J. Crutchfield);
66 also add regression test to ascertain that files in baseline
67 database are not quarantined erroneously
68 * sh_hash.c: replace check for prefix 'K' with check for not prefix'/'
69 to allow for arbitrary module-specific store/lookup in db
70 * replace 'visited', 'reported', 'allignore' with generic 'fflags' field
71 * sh_cat.c: reduce priority of MSG_TCP_RESET to avoid spamming if
72 port checking is used on same host as server (reported by kadafax)
73 * Install.sh: don't use --separate-output with non-checklist
74 widgets (problem discovered by D. Denton)
75 * sh_gpg.c, sh_userfiles.c: use sh_getpwnam et al. wrappers
76
772.3.5 (20-06-2007):
78 * sh_portcheck.c: try to tear down connections more gracefully
79 (request by S. Petersen)
80 * fix incorrect handling of files with zero size in GrowingLogFiles
81 (problem reported by S. Petersen)
82 * fix incorrect encoding of null checksums in stealth mode
83 * sh_hash.c: fix repeated printing of acl/attributes in database dump
84 * sh_unix.c: fix option useaclcheck ignored if both useaclcheck and
85 useselinuxcheck are supported
86
872.3.4 (01-05-2007):
88 * sh_processcheck.c: fix missing init of sh_prochk_res array before
89 check (leads to degrading functionality over time and 'fake pid'
90 warnings; reported by D. Ossenbrueggen and
91 soren dot petersen at musiker dot nu)
92 * sh_processcheck.c: fix memory leak
93 * sh_kern.c: for 2.6.21+ don't check proc_root_lookup (not possible
94 anymore? proc_root_inode.lookup != proc_root_lookup)
95 * sh_extern.c: flush streams before forking (problem if [Prelink]
96 used together with prelude logging, reported by M. deJong)
97 * fixed compilation of kern_head (regression cause by cross-compiling
98 fix; problem reported by S. Clormann)
99 * more typos fixed (reported by John Horne)
100
1012.3.3 (27-03-2007):
102 * fixed typos in configure.ac and manual (reported by John Horne)
103 * don't use mysql_options on x86_64, since libmysql is broken
104 * fixed cross-compiling (patch by Joe MacDonald)
105 * refactor sh_kern.c, sh_suidchk.c
106 * fix bug with leading slashes in linked path of symlinks within
107 the root directory
108 * sh_kern.c: check PCI ROM (Linux), refactor code
109 * move file descriptor closing more towards program startup
110 * kernel check: support OpenBSD 4.0 (wishlist)
111 * fix samhain_hide module (in-)compatibility with recent kernels
112 (reported by Jonny Halfmoon)
113
1142.3.2 (29-01-2007):
115 * fix regression in full stealth mode (incorrect comparison of
116 bytes read vs. maximum capacity), reported by B. Fleming
117
1182.3.1a (21-01-2007):
119 * fix incorrect use of sh_gpg_fill_startup if option --with-fp is used
120 (reported by zeroXten)
121
1222.3.1 (21-01-2007):
123 * fix bug that may cause accidental closure of yule TCP socket
124 (problem reported by B. Masuda)
125 * fix sh_kern.c for kernel 2.6.19 (reported by S. Clormann)
126 * don't use sstrip in 'make deb', since dh_shlibdeps uses objdump
127 (reported by B. Masuda)
128 * rm report.pl from rules.deb.in (reported by B. Masuda)
129 * samhainctl(): longer timeout (bad status reporting at startup,
130 reported by Phil and by Dan Track)
131 * sh_portcheck.c: make connect errors more descriptive
132 * sh_portcheck.c: fix ignored setting of PortCheckActive
133 * sh_processcheck.c: add statvfs, and wrap for EINTR
134 * sh_portcheck.c: add wrappers for EINTR
135 * report user and executable for hidden processes
136 * fix update failure if reportonlyonce = false (reported
137 by D. Strine)
138 * fix compile error in sh_portcheck.c (problem on cygwin
139 reported by J. D. Fiori)
140 * check filenames ending in space (also for utf8 spaces)
141 * check and escape csv formatted db listing
142 * cache results of sl_trustfile_euid()
143 * trustfile: use 4096 for MAXFILENAME, switch to strncpy
144 * CL option -v|--version for info on version and compiled-in options
145
1462.3.0a (01-11-2006):
147 * fix compile failure with portcheck + stealth (reported by lucas)
148
1492.3.0 (01-11-2006):
150 * fix concurrency for inserts in oracle db
151 * add acl_(new|old) to database schema
152 * check for selix attributes and/or posix acl
153 * new option UseSelinuxCheck (bool)
154 * new option UseAclCheck (bool)
155 * regression tests for above
156 * add module to check for open ports
157 * add module to check processes (hidden/fake/missing)
158 * use const char* for argument of module configuration callbacks
159
1602.2.6 (31-10-2006):
161 * fix missing support for MacOX X init script (reported
162 by Daniel Kowalewski)
163 * fix error about non-readable file with no checksum required
164 * fix server warning about 'no server name known'
165 * fix 'make deb' makefile target
166 * fix default export severity for server
167
1682.2.5 (05-10-2006):
169 * fix broken Install.sh, reported by Alexander Kraemer
170 * workaround for glob(3) sillyness on MacOS X (reported by David)
171 * fix for broken resorce fork check (reported by David)
172 * fix for broken compilation on cygwin (reported by Elias)
173
1742.2.4 (03-09-2006):
175 * add regression test for the GrowingLogFiles issue to test suite
176 * fixed sh_unix.c: bug in database init if GrowingLogFiles used
177 with signed database (reported by Timothy Stotts)
178 * bug in manual fixed (incorrect documentation of --enable-user,
179 noticed by M. Brown)
180 * rc.subr compatible init script for FreeBSD/NetBSD
181 * improve routine to find rpm after build
182 * add netbsd rc file from Brian Seklecki (taken from pkgsrc-wip)
183 * fix error in manual (location of lock file)
184 * fix bug with SuidExclude (files in directory were still checked)
185
1862.2.3 (31-07-2006):
187 * fix samhainadmin.pl: check for gpg-agent running if use-agent is set
188 (ticket #28 by anonymous)
189 * fix stealth mode (regression in parser), problem reported by
190 Joschi Kuphal
191 * fix minor typo in sh_database.c (compile problem reported by
192 Joschi Kuphal)
193
1942.2.2 (17-07-2006)
195 * minor fixes for regression test scripts
196 * minor updates to the manual (suggested by Brian A. Seklecki)
197 * fix sh_kern.c, kern_head.c: kernel rootkit detection for 2.6.17+
198 (problem reported by Leonhard Maylein)
199 * fix samhain_hide.c for 2.6.17+: use module_param() if MODULE_PARM
200 is not defined
201
2022.2.1c (11-07-2006)
203 * fix sh_extern.c: sh_ext_add_default() cast to (void) was too early
204 (Solaris 8 build failure reported by Jesse)
205 * fix sh_unix.c: wrong prototype for sh_unix_mlock()
206 if HAVE_BROKEN_MLOCK (AIX 5.2 build failure reported by
207 Jonathan Kaufman)
208
2092.2.1b (20-06-2006):
210 * fix compile error on SuSE 10.1 (reported by Leonhard Maylein)
211
2122.2.1a (15-06-2006):
213 * fix compile error on i686/MacOS X (reported by Andreas Neth)
214
2152.2.1 (13-06-2006):
216 * fix gcc 4 warnings and build failure on x86_64 (debian bug #370808)
217 * fix compiling with Oracle (noticed by Colapinto Giovanni)
218 * fix configure.ac for most recent autoconf version
219 (debian bug #369503)
220 * fix a regression that would make impossible local updates w/clients
221 * fix a few missing '\n' in sh_getopt.c
222 * sh_kern.c: fall back on mmap() if read() fails on /dev/kmem
223 * fix Solaris package creation
224 * recognize Solaris doors and event ports
225 * fix the idmef_inode_t patch: provide required info to avoid stat()
226 * fix bug on database update: fill in dev and rdev fields
227 * fix get_file_infos() in sh_prelude.c: avoid premature return
228 * GCC_STACK_PROTECT_CC: AC_TRY_COMPILE -> AC_TRY_LINK
229 * deploy.sh: allow to set a group for hosts upon installation
230 * patch by Yoann: fix an issue when setting the idmef_inode_t object
231 * fix memory leaks in error paths in sh_prelude.c
232 * fix concurrent inserts with postgres in sh_database.c
233 * code cleanup
234 * fix manual version in spec file, first noticed by Imre Gergely
235
2362.2.0 (01-05-2006):
237 * patch by Jim Simmons for samhainadmin.pl.in
238 * fix testsuite portability problems
239 * fix md5 endianess problem detected on HP-UX 11i / PA-RISC 8700
240 * fix potential NULL dereference in sh_utmp_endutent()
241 * patch by Neil Gorsuch for suidchk.c (do not scan lustre, afs, mmfs)
242 * fix sh_ext_popen (OpenBSD needs non-null argv[0] in execve)
243 * fix make_tests.sh portability (echo '"\n"' does not work on OpenBSD)
244 * fix bug in sh_utils_obscurename (check isascii)
245 * scan h_aliases for FQDN if h_name is not
246 * add copyright/license info to test scripts
247 * add copyright/license info to deployment system scripts
248 * support server-to-server relay
249 * new CL option --server-port
250 * minor improvements in manual
251 * patch by Yoann Vandoorselaere for sh_prelude.c
252 * allow --longopt arg as well as --longopt=arg
253 * verify checksum of growing log files (up to previous size)
254 * rewrite of the test suite
255 * added a bit of unit testing
256 * minor optimizations in various places
257 * optimized implementation of tiger checksum algorithm
258 * read in 64k blocks (faster than 4k)
259 * sh_unix.c, sh_hash.c: support file flags on *BSD, update Linux
260 file attribute code
261 * kern_head: fix compilation of kernel check module on OpenBSD
262 * updated samhainrc.linux, samhainrc.freebsd
263 * sh_unix.c: fix setrlimit (RLIMIT_NOFILE, ..)
264 * sh_files.c: fix missing use of flag_err_info
265 * sh_tiger0.c: remove repetitive use of mlock
266 * slib.c: remove fcntl's from sl_read_timeout (caller sets O_NONBLOCK),
267 add function sl_read_timeout_prep
268
2692.1.3 (13-03-2006):
270 * fix compile problem in slib.c (reported by Lawrence Bowie)
271 * fix bug with combination of one-shot update mode and file check
272 schedule (reportedby Dan Track)
273 * improved the windows howto according to suggestions by
274 Jorge Morgado
275 * fix samhain_hide kernel module for new linux kernel versions
276 * fix minor problem with dead client detection (problem reported
277 by Michal Kustosik)
278
2792.1.2 (10-01-2006):
280 * fix startup error with combination of gpg+prelude
281
2822.1.1a (22-12-2005):
283 * fixed a stupid bug in sh_files.c (break if file = dir)
284
2852.1.1 (21-12-2005):
286 * sh_calls.c: protect sh_calls_set_bind_addr against overriding
287 * comINSTALL, updateDB: use locking
288 * samhainadmin.pl: use locking
289 * fix typos in samhainrc.solaris (noticed by Robby Cauwerts)
290 * improve zAVLSearch (remove redundant strcmp)
291 * use AVL tree in sh_files.c instead of linked list (better scaling)
292 * fix bug with suidcheck (no update/check in one-shot mode with
293 schedule instead of check interval; noticed by R. Rati)
294 * fix for problem with '-t update -i' if daemon mode (problem report
295 by Peter van der Does)
296 * fix for bug in sh_util_ask_update (two returns were required ...)
297
2982.1.0 (31-10-2005):
299 * minor fix for cross-compiling with --with-kcheck
300 * sh_forward.c: handle bad fds in the select() fd sets
301 (reported by hmy)
302 * sh_extern.c: fix debugging code
303 * slib.c, sh_calls.c, sh_calls.h: improve handling of O_NOATIME
304 (reported by Gabor Kiss)
305 * makefile.in: fix for solaris package creation
306 * sh_mail.c, sh_readconf.c: mail filtering options
307 * sh_database.c: Oracle reconnect on connection failure
308 (bug report by Alexander A. Sobyanin)
309 * sh_unix.c: don't purge MYSQL_UNIX_PORT environment variable
310 (problem reported by Peter)
311 * sh_calls.c: fix for a HP-UX accept() problem caused by the gcc4 fix
312 * fixes for gcc 4.0.2 compiler warnings
313 * ability to use daemon mode together with update
314 (wishlist Yoan Vandoorselaere)
315 * fixes for debugging
316
3172.0.10a (22-08-2005):
318 * fix for overlapping directory check specification (reported by Bub)
319
3202.0.10 (21-08-2005):
321 * fix for segfault (free() on a constant string) with libprelude
322 (problem reported by Grae Noble)
323 * upgrade FreeBSD kernel check to 5.4, minor fixes
324 * useful script for users of Linux kernel check
325 (contributed by marc heisterkamp)
326 * documentation improvements (suggested by Brian Seklecki and Robby)
327
3282.0.9 (25-08-2005):
329 * samhain_erase.c: add #define for NULL
330 * sh_suidchk.c: fix incorrect use of escaped filename
331 * sh_prelude.[ch], sh_readconf.c: configurable mapping from
332 samhain severity to prelude severity
333 * sh_unix.h: second arg of gettimeofday should be NULL
334 * sh_files.c: fix checking of directory special file (use specified
335 policy, not that of parent dir, problem found by Brian A. Seklecki)
336 * sh_entropy.c: longer timeout for entropy collector
337 * sh_socket.c, sh_forward.c: allow probing of clients for
338 necessity of configuration reload
339 * yulectl: minor fixes, option -v (verbose), new command PROBE
340 * fix 'File not found' messages for files flagged with IgnoreMissing
341 * sh_database.c: strip newline from oracle error messages
342 * sh_files.c: fix rsrc fork issue with MacOS X Tiger
343 (reported by A. Koren)
344 * never compute checksum if not checked (problem report by D.Hughes)
345 * sh_prelude.c: cleanup and bugfix by Yoann
346 * sh_hash.c: for prelude, make sure mode is supplied with user/group
347 and vice versa
348 * sh_prelude.c: provide proper FileAccess objects (bug
349 report by Mihai Ilinca)
350
3512.0.8 (03-07-2005):
352 * configure.ac: use $LIBPRELUDE_PTHREAD_CFLAGS rather than
353 $LIBPRELUDE_CFLAGS (bugfix by Yoann)
354 * samhain.spec.in: remove support for chkconfig (it's too buggy).
355 Strangely, if invoked as install_initd it behaves sanely ...
356 * src/sh_err_log.c: fix key input (this time for real)
357 * fix --with-altlogserver (bug from 2.0.7b)
358 * remove server socket in start/stop script
359
3602.0.7e (not released):
361 * Makefile.in: introduce a total of 6 sec delay for 'make' utilities
362 that use 1 sec resolution, and consider target out-of-date if
363 timestamp(target) = timestamp(dependency) ...
364 * src/sh_err_log.c: fix key input
365 * another fix for yulectl (use pwent->pw_dir)
366 * dsys/comINSTALL, dsys/comUNINSTALL, dsys/comBUILD: fix PATH
367
3682.0.7d (not released):
369 * one more fix for the spec file (stupid rpm finds tags in comments!!!)
370
3712.0.7c (not released):
372 * test/testrun_1b.sh, test/testrun_2b.sh: use $GPG_PATH
373 * dsys/comINSTALL, dsys/funcDB, dsys/funcINSTALL: some bugfixes
374 * samhain-install.sh.in: fix test -z $verbose
375 * sh_hash.c: speedup database reading
376 * Makefile.in: fix the problem that BSD make would make too much
377 * deploy: yulerc.clients -> yulerc.install.db, provide
378 $defdatabase for backward compatibility
379 * deploy: allow for comma in client_install_date
380
3812.0.7b (not released):
382 * hp_ux.psf.in: fix psf file
383 * dsys/comINSTALL: fix $yule_date -> $yule_data
384 * Makefile.in: fix 'make depot'
385 * sh_tools.c, sh_unix.c: fix detection of open file limit
386 * sh_readconf.c: reset read_mode after reading conf file
387 * yulectl.c: better error messages, use homedir from getpwuid(geteuid)
388 * init/samhain.startLSB.in: fix misleading message in lsb init script
389 * sh_forward.c: better display for nonce u in debug mode
390 * sh_tiger*.c: fix checksum for HP-UX 64bit
391 * samhain.c: don't fetch database twice
392 * configure.ac: accept nodename for --with-logserver=...
393 * samhain_setpwd.c: return proper exit status for samhain_setpwd
394 * respond to SIGTERM on initializing
395 * fix problems with samhainadmin.pl
396 * sh_utils.c: fix bug with AddOKChars (found by Karol)
397
3982.0.7a (not released):
399 * remove 'df' from entropy gatherer (NFS may hang)
400 * modify va_copy check (doesn't work with HP-UX PA64 compiler)
401 * fix compile warnings in sh_database.c
402 * samhain-install.sh.in: check for /usr/bin/false in /etc/shells
403 * fix install-boot on HP-UX
404 * aclocal.m4: fix configure CL parsing to recognize VAR=VALUE
405
4062.0.7 (11-06-2005):
407 * yet another fix for the spec file (use internal dependency generator)
408 * sh_error.c, sh_prelude.c: init libprelude after open fds are closed
409 * error message if queue is full
410 * fix two compiler warnings on HP-UX
411 * fix sh_mail.c for Interix (no resolver routines)
412 * fix sh_unix_initgroups2() if no initgroups() function (bug reported
413 by Geries Handal)
414 * remove references to 'struct timezone' (Interix; problem
415 reported by Geries Handal)
416 * init/stop for prelude on SIGHUP
417 * sh_cat.h: fix a stupid bug with messages classes
418 * manual: new section on nagios (with help from kiarna),
419 more on prelude
420 * sh_prelude.c: cleanup and improvements (Yoann Vandorselaere)
421 * default prelude profile name now is 'samhain' (lowercase)
422 * sh_readconf.c: new option PreludeProfile (by Yoann Vandorselaere)
423 * remove obsolete check for linux/module.h, linux/unistd.h
424 * remove dependency on virtual/glibc in gentoo ebuild
425 (problem reported by Willis Sarka)
426
4272.0.6 (01-03-2005):
428 * sh_prelude.c, configure.ac, aclocal.m4: support for
429 libprelude 0.9 (Yoann Vandoorselaere)
430 * sh_html.c: fix bug with entry.html template (reported by
431 Stephane Sanchez)
432 * Install.sh: fix mandir option (reported by Rodney Smith)
433 * Fixed Linux/64bit bug in definition of EUIDSLOT
434 * New targets 'make depot', 'make depot-light' (HP-UX, untested)
435 * Use sstrip for RPMs and DEBs (automatic stripping disabled)
436 * Fix aclocal.m4 for autoconf 2.59 (missing $ac_cr_alnum et al.,
437 problem noticed by Yoann Vandoorselaere)
438 * Modify samhain.spec.in to disable automatic stripping upon install
439 * Fix deploy.sh + '--enable-gpg', and fix 'make rpm' and 'make deb'
440 for '--with-khide' (problems reported by Mark)
441 * Fix compile error in sh_tools.c on HP-UX 10.20
442 (problem reported by Dennis Boylan)
443 * Runtime configuration of server listening port (wishlist)
444 * Runtime configuration of server listening interface (wishlist)
445 * Ignore SIGTTIN (consistency)
446 * Use SIGTTOU to force file check (wishlist)
447
4482.0.5b (01-04-2005):
449 * Fix build problem b/o timestamp on stamp file
450
4512.0.5a (16-03-2005):
452 * Fix problem with 'make rpm' (reported by Dirk Brümmer)
453
4542.0.5 (02-03-2005):
455 * Fix bug with partial reads from clients in server
456 (bug report by Brian)
457 * Support gpg checksum bootstrap with yule
458 * Support mount option check on HP-UX
459 * For MAIL FROM, use 'example.com' as domain part if
460 hostname is numeric (problem reported by Eric Raymond)
461 * The HOWTO-write-modules has been updated.
462 * Convenience functions to insert data in database have been
463 added.
464 * Use int0x03 only on i386 in sh_derr() (portability problem
465 reported by John Mandeville)
466
4672.0.4 (09-02-2005):
468 * Fixed broken 'make deb' (problem report by olfi)
469 * Fixed minor bug in test scripts (detection of gmake vs. make)
470 * Fixed Tru64/OSF compile warnings (reported by B. Terp)
471 * Normalize list parsing to allow comma, space, and tab as separators
472 * Some more descriptive error messages in kern_head.c
473 * Absolute path to utilities in init/samhain.startLinux.in
474 * Fixed is_root variable in deploy.sh
475 * Fixed 'deploy.sh info'
476 * Fixed 'deploy.sh install' client startup
477 * Fixed 'make tbz': don't remove ebuild scripts in 'make dist'
478 (issue reported by W. Sarky)
479
4802.0.3 (14-12-2004):
481 * Fix CPPFLAGS with mysql/postgresql (repoted by P. Smith)
482 * Fix missing sys/time.h include in slib.c (reported by Jonas)
483 * Workaround for file closing problem with Prelude+GPG
484 * Fixed memory leak with Prelude.
485 * Fixed bug in samhain_stealth (PGP signature not correctly
486 retrieved from hidden configuration; report and patch by V. Tuska)
487 * Added Perl script to concatenate file signature database files
488 * Fix compile error with combination of --enable-nocl and
489 --enable-stealth (reported by Zdenek Polach)
490 * Fix bug in dsys/initscript with --enable-nocl
491 * Fix declaration of sh_kern_timer()
492 * Fix missing Mounts+Userfiles options in appendix of manual
493 * Updated the README (bug report by H. Franzke)
494 * Fix some compiler warnings
495
4962.0.2a (09-11-2004):
497 * Fixed OoM condition when client rc file not found (reported by Eilko)
498
4992.0.2 (08-11-2004):
500 * Fixed buffer overflow in sh_hash_compdata() (only in 'update' code)
501 * Fixed uninitialized variable in sh_mail_msg() (problem reported
502 by Michael Milvich)
503 * Fixed potential NULL pointer dereference in sh_hash_compdata()
504
5052.0.1 (01-11-2004):
506 * Fixed compilation bug reported by jue (--with-kcheck broken).
507 * Fixed start option (bug reported by sanek). Behaviour wrt.
508 environment variables depended on the way the daemon was started.
509
5102.0.0 (31-10-2004):
511 * The deployment system has been rewritten from scratch in
512 a cleaner and more modular and extensible way. Deployment
513 of native packages is supported now.
514 * The build system has been revised. Building outside the source
515 directory is supported now.
516 * Support for checksumming of prelinked executables / libraries
517 has been added.
518 * The configure script now checks for the SSP/ProPolice patch in GCC,
519 and enables it if present.
520 * The install-boot option in samhain-install.sh has been fixed
521 (use absolute paths for sbin utilities).
522 * A nagios plugin (scripts/check_samhain.pl) has been added.
523 * The LSB (Linux Standard Base) init script has been fixed (the output
524 was incorrect).
525 * Fetching of built binary packages has been
526 fixed ($(PACKAGE)->@install_name@).
527 * For files in proc, the timeout has been reduced, and no error
528 messages are issued upon timeout.
529 * A function has been added to print out full details for missing
530 files if encountered while in sh_files().
531 * The reporting for SuidCheck has been fixed (incorrect policy
532 noticed by JiM).
533 * On Linux, SuidCheck does not report on files marked as candidates
534 for mandatory locking (group-id bit set, group-execute bit cleared).
535 * Fix for oracle init script (by Matt Warner)
536
5371.8.12b (11-10-2004):
538 * fix bug in MSG_MSTAMP (%ld -> %lu)
539 * fix bugs in sh_suidchk.c (%ld -> %lu), check fopen for NULL,
540 mkdir mode for quarantine directory
541 * fix the fix for modlist_lock search in System.map
542
5431.8.12a (01-10-2004):
544 * fix bug in samhain-install.sh.in (only occurs on Solaris), reported
545 by J. Roland
546
5471.8.12 (27-09-2004):
548 * fix compile bug with --enable-static + --with-database=postgresql
549 * fix search for modlist_lock in System.map
550 * password auth for yule command socket (request by D. Kocic)
551 * more info about pending/sent commands to clients
552
5531.8.11 (30-08-2004):
554 * fix static linking on Linux by use of replacement routines from
555 uClib - however, this means, there is no NIS support anymore
556 * new option AddOKChars=... to modify the set of characters for
557 filenames considered 'obscure'
558 * new option HardlinkOffset=... to specify an offset from the canonical
559 hardlink count for a directory
560 * fix some warning with HP 11.23 native compiler
561 * fix minor OpenBSD portability problems (EIDRM, compiler warning)
562 * samhainrc.5, samhain.8: updated the man pages
563 * sh_unix.c, sh_files.c: ignore 'no user/group' and 'obscure name'
564 for AllIgnore
565 * sh_kern.c: fix 'update' to display modifications
566 * sh_kern.c: fix bug with IDT check (spurious alerts b/o uninitialized
567 fields)
568 * stealth kernel modules: fix for linux 2.6, fix
569 redefine of KERNEL_VERSION
570 * warn about stealth kernel module problem with 2.6 in manual
571 * sh_unix.c: remove some cruft
572 * fix a typo in the manual (noticed by J. Rubin)
573 * configure.ac: re-order output from libprelude-config (required
574 for static linking - problem reported by E. Neber)
575 * kern_head.h, kern_head.c: fixes for Linux 2.6 kernel
576
5771.8.10b (13-07-2004):
578 * fix incorrect usage of 'retry_msleep()' in sh_kern.c (reported
579 by Pat Smith)
580
5811.8.10a (13-07-2004):
582 * depend-gen.c: fix for FreeBSD 'make' which does not understand
583 the dependencies ... (problem reported by David Thiel)
584
5851.8.10 (13-07-2004):
586 * sh_unix.c/sh_unix.h: fix defaults for 'GrowingLogFiles' policy
587 (bug report by VZoubkov)
588 * fix some warnings (unreachable statement) with HP-UX native compiler
589 * kern_check.c: silence warning about 'sendfile' for 4.10
590 (noticed by Ryan Beasley)
591 * modify depend-gen.c to ignore sh_gpg_chksum.h
592 * add a non-plaintext version of GPG_HASH (sh_gpg_chksum.h)
593 * .. and for fingerprint
594 * sh_suidchk.c: fix some compiler warnings on solaris
595 * allow commas to separate multiple entries in a RedefXXX= directive
596 * replace sleep/usleep with nanosleep wrapper function
597 * replace alarm() for read timeout with select() in sl_read_timeout
598 (should fix bug reported by Scott Kelley)
599 * increase lstat/open timeout to 6 sec
600
6011.8.9 (16-06-2004):
602 * made 'no action specified' error message more informative
603 (suggested by Stephen Gill)
604 * fix memory leak in mysql sh_database_query() (bug report by Dejan)
605 * remove some cruft from the code
606 * sh_files.c: check MacOS X resource forks (idea from Osiris)
607 * sh_files.c: no hardlink check for MacOS X
608 * sh_util_ask_update: fix bug with no terminal in non-interactive mode
609 (report and debug data by Kris Dom)
610 * manual refactored
611 * fix redundant messages when updating with suidcheck
612 * allow interactive update for suid files
613 * don't remove the TZ environment variable to guard against
614 misconfigured hosts
615 * also use gethostname if uname returns possibly truncated name
616 * fix improper file descriptor handling in sh_mail.c (bug report
617 by Alex Weiss)
618 * cleanup MBLK cruft
619 * use SH_ALLOC/SH_FREE in sh_prelude.c
620 * update sstrip to Version 2.0
621
6221.8.8 (25-05-2004):
623 * fix compilation problem on AIX 5.2 (nameser_compat.h; report by
624 Tim Evans and Ian McCulloch)
625 * don't check for trusted paths on Cygwin
626 * add Windows HOWTO written by Kris Dom
627 * kern_check.h: extend FreeBSD syscall table for 5.x
628
6291.8.7a (03-05-2004):
630 * sh_mail.c: fix subject length
631 * sh_mail.c: fix the sh.mailNum.alarm_last fix (report by Kris Dom)
632 * sh_utils.c: sh_util_ask_update(): fix ISO C conformance bug
633 (compile problem reported by Kris Dom)
634
6351.8.7 (01-05-2004):
636 * sh_mail.c: fix incorrect count of sh.mailNum.alarm_last, causing
637 empty mails (introduced with segfault fix in 1.8.6, report
638 by Kris Dom)
639 * sh_utils.c: sh_util_ask_update(): check whether stdin is a terminal,
640 try to reopen on controlling terminal if not
641 * sh_utmp.c: fix order of options (problem report by Uri)
642 * sh_files.c: sh_files_chk(): set tmp = NULL at end of loop
643 (may cause segfault on null dereference for missing files)
644 * sh_unix.c: patch by Marc Schütz (order of sh_unix_getinfo_type,
645 sh_unix_getinfo_attr)
646 * don't use dh_installmanpages in 'make deb' (samhain/yule conflict
647 reported by xavier)
648 * on HP-UX, define _XOPEN_SOURCE_EXTENDED in sh_mail.c and sh_tools.c
649 (suggested by Kris)
650 * include nameser_compat.h in sh_mail.c (for MacOS X,
651 suggestion by jna)
652 * sh_utmp.c: fix time for logout events (reported by Erich
653 van der Velde)
654
6551.8.6 (15-04-2004):
656 * add CL option to set threshold for prelude and RDBMS
657 * sh_mail.c: fix bug with MailSubject option (segfault on NULL pointer
658 dereference; reported by Micha Silver)
659 * fix compiling with --disable-encrypt (reported by Pat Smith)
660 * fix minor problem in scheduler (don't return before all schedules
661 are tested, to set last_exec correctly)
662
6631.8.5 (05-04-2004):
664 * fix bugs in sh_utmp.c (unlinking of list head); may fix an OpenBSD
665 problem (endless loop; report and debugging aid by Joe MacDonald)
666 * fix hardlink check (null dereference in error message, segfaults
667 on solaris - noticed by Bob Bloom)
668 * sh_suidcheck: don't truncate quarantined file if nlink > 1
669 * fix Install.sh (no --seperate-output with --radiolist); patch by
670 Greg Kimberly
671
6721.8.4 (17-03-2004):
673 * add Prelude patch by Patrice Bourgin
674 * add license statement to sh_mounts.c, sh_userfiles.c after
675 receiving a clarifying e-mail from Cian Synnott
676 * support UsePersistent = no for Oracle (problem spotted and fix
677 tested by Michael Somers)
678 * fix bug in samhainadmin.pl
679 * sh_gpg.c: describe type of gpg error (if any)
680 * fix persistent connections with postgresql (reported by
681 Erwin Van de Velde)
682 * prelude: local 'meaning' shadows global in sh_prelude_alert
683 (spotted by David Maciejak)
684 * uname: workaround for cases where nodename would be a possibly
685 truncated FQDN (problem reported by Cian Synnott)
686 * re-write parts of sh_kern.c, store kernel info in baseline database
687 -> no need to recompile after kernel upgrade
688 * modify timeouts in sh_unix_getinfo, add timeout warning
689 * change handling of dangling symlinks (store in db)
690 * fix typo with MSG_FI_OBSC2 (double slash)
691 * remove redundant operation in sh_utils_safe_name
692 * fix occasional random start bytes of long messages in
693 sh_error_string (sl_strlcat -> sl_strlcpy)
694 * provide details for missing files (as for added files)
695 * remove duplicate message for no such group/user
696 * add fixes for samhain.oracle.init (supplied by Michael Somers)
697 * fix date insertion for Oracle (fix by Michael Somers)
698 * manual: fix incorrect statement about RPM (noticed by
699 Lars Kellogg-Stedman)
700
7011.8.3 (02-02-2004):
702 * add a HOWTO-client+server-troubleshooting document
703 * fix another bug with SIGUSR2 (suspend mode)
704 * new option SetBindAddress (--bind-address=...) to force
705 interface for outgoing connections on multi-interface box
706 * don't link against libgmp if not required (i.e. standalone)
707 * test for ext2fs/ext2_fs.h or linux/ext2_fs.h
708 * new make targets 'emerge' and 'tbz2' for gentoo
709 * update rules.deb.in based on the Debian package
710 by Javier Fernandez-Sanguino
711 * updated config.guess, config.sub to version 2002-09-05
712 * external command: report failure only once
713 * console: reset failure status after success
714 * README.UPGRADE: explain 1.7.x <-> 1.8.x client/server compatibility
715 * use persistent connection to database by default
716 * option UsePersistent=no to switch off persistent connection
717
7181.8.2 (19-01-2004):
719 * sh_userfiles.c: new option UserfilesCheckUids (requested)
720 * sh_error.c: server: don't log to logfile before dropping root
721 * new script scripts/samhainadmin.pl (administrative tasks for
722 signed config/database files)
723 * add changes code to log_msg for reports on modified files
724 * change default log threshold to 'mark', as 'none' tends
725 to confuse new users
726 * faster response time for SIGUSR2
727 * revised (mostly backward-compatible) message classes
728 * fix missing check of mailTime in server select loop
729 * add support for libprelude (version 0.8.10)
730 * fix format for MSG_E_GRNULL (reported by Stefan Hudson)
731 * fix Bourne shell incompatibility (export) in samhain-install.sh
732 (first reported by David Thiel)
733 * fix typo in spec file (first reported by Christian Vanguers)
734 * remove some cruft (signal handler, memory handling)
735 * return from sigterm handler, rather than exit directly
736 (re-entrancy problem causes more problems than it's worth)
737
7381.8.1 (03-12-2003):
739 * fix gmp detection (problem pointed out by Nix)
740 * fix/improve the error message if test compiling with mysql fails
741 * new CL option --interactive for interactive db update
742 * fix some compiler warnings from IRIX MIPS compiler
743 * kern_head.h, kern_head.c: option to disable IDT check
744 * kern_head.h, kern_head.c: update kernel syscall table (2.4.20,2.6)
745 * sh_utmp.c: count number of logins (request by Erwin Van De Velde)
746 * change username -> userid, remove (long) userid (bug noticed
747 by Erwin Van De Velde)
748 * emit ADDED message for new SUID/SGID files
749 * add trailing slash to excluded directory if there is none
750
7511.8.0a (04-11-2003):
752 * sh_error.c: remove two debug printf's
753
7541.8.0 (31-10-2003):
755 * manual: make ps file fit on both a4 and letter paper
756 * sh_socket.c, sh_socket.h, sh_forward.c: socket interface
757 to send (quit/reload) commands to clients
758 * sh_forward.c, configure.ac: enable build with libwrap
759 (Wietse Venema's TCP Wrappers library)
760 * sh_ignore.c, sh_ignore.h, sh_files.c, sh_hash.c, sh_readconf.c:
761 new option to suppress messages for new and/or deleted files
762 * samhainrc.aix5.2.0: contributed by Christoph Kiefer
763 * samhain.c: fix compile warning on solaris (noticed by Ian Hunt)
764 * sh_database.c: undef debug code for oracle
765 * samhain.oracle.init: contributed by Joern Michael Krueger
766 * configure.ac, sh_utils.ac, Makefile.in, sh_modules.c,
767 sh_cat.c, sh_cat.h, sh_mounts.c/h, sh_userfiles.c/h:
768 check-mounts and userfiles modules contributed by eircom.net
769 * sh_utils.c: fix off-by-one bug in sh_util_compress()
770 * sh_forward.c, sh_tools.c, configure.ac:
771 version 2 client/server protocol
772 * sh_mail.c: add %S to include severity in subject (user request)
773 * sh_suidchk.c, 1093: fix warning about unused var 'flags' on FreeBSD
774 * samhain.h, sh_unix.h, sh_unix.c: extern inline -> static inline
775 for --enable-ptrace
776 * samhain.c: lower priority for 'uninitialized module' message
777 * sh_entropy.c: lower priority for message if /dev/random blocks and
778 /dev/urandom is available
779 * improved error messages in sh_readconf.c
780 * print system error message for getpwuid, getgrgid
781 * fix missing module init after SIGHUP (noticed by Cian Synnott)
782
7831.7.12 (13-10-2003):
784 * sh_mail.c: fix buffer overflow in mail handler (introduced in 1.7.10)
785 thanks to bug reports by Jason Martin and Matthew P. Cox
786
7871.7.11 (01-09-2003):
788 * samhain.c, samhain.h, sh_unix.c, sh_forward.c, sh_html.h:
789 - change SIG_USR1 to switch between dbg on/off
790 - change SIG_USR2 to switch between suspend on/off
791 - fix CLT_ILLEGAL to actually work
792 - introduce new state CLT_SUSPEND
793 - force reauthentication after suspend
794 * slib.c: change MAXFD from FOPEN_MAX (16) -> 1024
795 * sh_suidchk.c: better AIX fs detection (Christoph)
796 * sh_entropy.c: increase buffer size for unix entropy gatherer
797 (problem reported by D. Danielson)
798 * default config files: add lots of comments, list more options
799 * sh_error.c: set default severities to 'crit'
800 * sh_readconf.c, sh_cat.c, sh_cat.h: stricter check on config
801 file syntax, issue warnings (triggered by C. Kiefer)
802 * Makefile.in: handle depend-gen errors more gracefully
803 * sh_err_console.c: fix bug in enable_msgq (reported by F. Behrens)
804 * configure.ac: workaround for mysql_config weird output
805 (reported by G. Faron)
806 * sh_unix.c, sh_tiger0.c: check IO limit during read of large files
807 * depend-gen.c: close streams before attempting to rename (Cygwin)
808 * Makefile.in: fail gracefully if depend-gen fails
809 * sh_database.c: sh_database_query(postgresql): fixed missing SL_ENTER
810
8111.7.10 (27-07-2003):
812 * FreeBSD init script: define $pidfile (reported by D. Thiel)
813 * sh_unix.c, sh_unix.h: fix compile error on AIX 4.2
814 * sh_schedule.c: fix bad array size
815 * samhain.c: fix pid_t <> int casts
816 * sh_kern.c: fix repetitive messages
817 * configure.ac: try to bootstrap if TIGER192 not supported by gpg,
818 provide a detailed error message
819 * configure.ac: try harder to locate mysql
820 * docs/Changelog: retroactively add release dates, if known
821 * sh_mail.c: fix potential message truncation in mailer
822 * sh_unix.c, samhain.c, samhain.h: make --enable-ptrace more portable
823 * sh_readconf.c: fix segfault (dereference of uninitialized pointer)
824 if --with-gpg and --enable-stealth are used together (reported
825 by Anthony Caetano)
826 * sh_unix.c, samhain.c, sh_calls.c: fix problems with descriptive
827 error messages (larger GLOB_LEN, stat fills aud_err_message)
828
8291.7.9 (30-06-2003):
830 * sh_err_log.c: fix segfault on SIGABRT (dereference of freed memory),
831 problems with SIGABRT noticed by Brian and Alf B Lervåg
832 * deploy.sh.in: fix some bugs (found by Alf B Lervåg)
833 * scripts/chroot.sh: fix typo (found by Alf B Lervåg)
834 * configure.ac (khide): search also for 'd sys_call_table' (noted by
835 cuek_saja)
836 * strip whitespace before checking gpg checksum (noted by D. Thiel)
837 * manual (faq section): explain how to stop console output
838 * Makefile.in: fix re-naming of yule with --enable-install-name
839 * HOWTO-client+server.html: fix typo (noted by xavier renaut)
840 * configure.ac: escape '-' in awk regex (required by GNU awk 3.1.1)
841
8421.7.8 (28-05-2003):
843 * sh_unix.c: new mlock implementation with reference count
844 and page alignment (fix for solaris problem)
845 * kern_head.c: search also for 'xxxxxxxx d sys_call_table'
846 * sh_html.c: write status comment (for Beltane 2)
847 * add CL option --delimited for comma-delimited signature database dump
848 * sh_mail.c: check exit status of push_list to fix counting bug
849 (bug reported by Alan Moore)
850 * configure.ac: add error message to --with-libs
851 * fix spelling of $DAEMON in init script (noted by C. Grigoriu)
852 * fix missing initgroups()
853
8541.7.7 (06-05-2003):
855 * sh_forward.c: fix bug if compiled with --enable-udp, but disabled
856 in config file (found by Andy OBrien)
857 * sh_database.c: sh_database_entry(): size -> c_size (two places)
858 to fix writing of '\0' to arbitrary places :(
859 (problem pointed out by Stefan Giesen)
860 * profiles/*/configopts: fix --with-base -> --enable-base
861
8621.7.6 (24-04-2003):
863 * sh_forward.c, entry.html, head.html: fix/additions by Stefan Giesen
864 * fix samhain_hide for the O(1) scheduler used by RedHat:
865 configure.ac, acconfig.h: check for next_task in struct task_struct
866 samhain_hide.c: use find_task_by_pid if no next_task in task_struct
867 * samhain_erase.c: add MODULE_LICENSE("GPL") to fix warning
868
8691.7.5 (15-04-2003):
870 * sh_cat.c, sh_forward.c, sh_hash.c: fix double 'msg' tag
871 * manual: point out the bmaxdata problem on AIX in faq section
872 * trustfile.c: don't check symlinks (permissions of directory count)
873 * sh_schedule.c: fix problem with daylight saving switchover
874 * sh_samhain.c: close all open fd's >2 before reading the conf file
875 * sh_unix.c: fix dereferenced NULL pointer when exiting on non-existing
876 user
877 * sh_forward.c: fix dereferenced NULL pointer when exiting on udp error
878 * sh_forward.c: place timestamp code before select() timeout handler
879 * fix incorrect class of timestamp messages (conflict with manual)
880 * sh_readconf.c, sh_forward.c: new config option SetStripDomain
881 * configure.ac: add warning if /lib/modules/`uname -r`/build/include
882 not found
883 * samhain_hide.c: adapt for RedHat 2.4 kernel (fetch sys_call_table
884 address from System.map)
885 * sh_err_syslog.c: fix for Solaris
886 * samhain.spec.in: strip REQ_FROM_SERVER from config file install path
887
8881.7.4 (21-03-2003):
889 * configure.ac: fix bug in defargs (--with-base > --enable-base)
890 * aclocal.ac: detect unsupported options
891 * kern_check: add syscalls, skip unused syscalls
892 * fix Manual (--enable.../--with... inconsistency)
893 * add two HOWTOs (signed files, server/client)
894 * moved manual into new subdirectory docs/
895 * add admin scripts by S.Bailey/M.Redinger
896 * option to have a version string in db file
897
8981.7.3 (23-02-2003):
899 * samhain-install.sh: use yule user key for signing on install
900 * fix a bug in sh_err_console.c (attempted write to const char)
901 * sh_gpg.c: if server, always use ~unprivileged_user/.gnupg
902 * Makefile.in: make target 'trustfile' depend on config.h
903 * configure.ac: don't use install_name before it is defined ...
904 * sh_tiger0.c: fix bug in checksum computation introduced in 1.7.2
905 * samhain.c: make sure daemon cannot be forced into 'update' mode
906 * sh_hash.c: remove AIX workaround (AIX has been fixed meanwhile)
907
9081.7.2 (04-02-2003):
909 * sh_kern.c: use sys_call_table address from System.map
910 * fix for reserved SQL keyword 'group'
911 * add AC_SYS_LARGEFILE to configure.ac
912 * allow separate client-specific log files for server
913 * sstrip.c: compile sstrip code only for i386
914 * sh_unix.c: closeall: don't close trace file
915 * slib.c: don't trace sl_is_suid (leads to recursion in trace handler)
916 * samhain-install.sh.in: fix detection of LSB compliant systems
917 * sh_tools.c: get_client_*_file: lstat -> stat to allow symlinks
918 * sh_forward.c: sh_forward_do_write: set O_NONBLOCK for fd
919 (may block otherwise, for no good reason apparently ...)
920 * samhain.spec.in: replace %configure with ./configure
921 * sh_unix.c: re-write signal handling (use __malloc_hook et al. to
922 check whether we are in the middle of a free/malloc/realloc/memalign)
923 * sh_unix.c: use new safe_logger() function to log from signal handler
924 * sh_err_log.c: fix xml
925 *
926 * fix Makefile.in to exit non-zero on compile failure
927 * database init: create index on log_host, entry_status
928 * sh_suidchk.c: fix path building
929 * sh_tiger0.c: read larger blocks
930 * sh_hash.c: cast inode to UINT32
931 * sh_tools.c: check that config/database files size fits in uint
932 * sh_error.c: export flag_err_debug to avoid unnecessary calls
933 * sh_unix.c: save the open() call in sh_unix_getinfo_attr()
934 * profiles/redhat_i386/bootscript: add # description field
935 * deploy.sh.in: set owner + permissions for files in yule_filedir
936 * profiles/debianlinux_i386: fix bootscript
937 * Makefile.in: fix deploy file lists and targets (include init+scripts)
938 * MLOCK GOOD/BAD -> SL_FALSE/SL_TRUE
939 * sh_mail.c: GOOD/BAD -> SL_FALSE/SL_TRUE (AIX sys/param.h)
940 * sh_err_syslog.c: split long messages rather than truncating
941 * sh_error.c: allocate msg to fix truncation limit
942 * sh_unix.c: closeall fd's >= 3 in non-daemon mode (inherited
943 filedescriptors may exceed FOPEN_MAX, causing problems in
944 sl_open_file)
945 * sh_err_console.c: avoid stdio
946 * trustfile: dirz: make swp[] static
947 * slib.c: speed up sl_strlcat
948 * clean up some bad heap allocation (PATH_MAX+(1|2) -> PATH_MAX)
949 * remove some unused code
950 * slib.c: support long long int in the snprintf replacement
951 * configure.ac: new configure macro to check whether sa_sigaction works
952 * Makefile.in: make sstrip, encode dependent on config.h
953
9541.7.1a (08-01-2003):
955 * fix a syntax error in samhain-install.sh.in
956
9571.7.1 (07-01-2003):
958 * search runlevel scripts in ./init or ./
959 * handle all distro-specific Linux runlevel script issues
960 within a single script
961 * support install-boot on Yellow Dog Linux and Slackware
962 * samhain-install.sh: fix a bug for unknown Linux
963 ('"' not closed, DVER not set)
964 * samhain-install.sh: check for /etc/yellowdog-release
965 * sh_database.c: fix missing entry for 'userid' in attr_tab[]
966 * fix debian.rules.in (disable sstrip)
967 * update make targets: 'srpm', 'srpm-dist', 'rpm'
968 * check for zlib if mysql is used
969 * workaround for NetBSD bug with libresolve
970 * fixed problems with spec files
971
9721.7.0 (22-12-2002):
973 * improved spec files (Andre Oliveira da Costa <brblueser@uol.com.br>)
974 * sh_unix.c: fix a dereferenced static pointer in tf_trust_check
975 * runlevel scripts: remove pid file after stop
976 * make the data directory read-only for the daemon
977 * treat 'localhost' specially in MX resolver
978 * sh_err_log.c: set sh.flag.log_start == TRUE after writing </trail>
979 * deploy.sh.in: fix quoting (fix by Simon Bailey)
980 * slib.c: make sl_get_euid et al. behave well if uids not stored
981 * trustfile.c: use euid = uid(SH_IDENT) if server
982 * sh_mail.c: include an MX resolver
983 * Makefile.in: install-user routine for user installation
984 * have yule drop root
985 * sh_tools.c: open_temp use logdir if server
986 * unified options for runlevel script
987 * HP-UX, IRIX runlevel scripts
988 * AIX inittab entry
989
9901.6.6 (13-12-2002):
991 * configure.ac: solaris cc -O2 -> -xO2
992 * sstrip.c: avoid alpha architecture
993 * profiles/solaris/configopts: no --enable-static
994 * sh_forward.c: sh_forward_req_file: copy argument to local array
995
9961.6.5 (04-12-2002):
997 * sh_utmp.c: set userlist = NULL in sh_utmp_end ()
998 * sh_unix.c: do not assume that environ is sane
999 * exit handler: write </trail>
1000 * sh_log_file(NULL): test sh.flag.log_start != S_TRUE
1001 * FreeBSD rc script does not blindly accept content of pid file
1002 * configure.ac: allow 'localhost' for log server
1003 * sh_calls.c: retry_connect: ntohs (port)
1004 * testrun_2[abc].sh: --with-logserver=localhost for client
1005
10061.6.4 (12-11-2002):
1007 * sh_tools.c: fix error when escaping '=<'
1008 * fix the 'make srpm' target
1009 * deploy.sh.in: avoid that client is named 'yule'
1010 * define memset to sl_memset
1011 * fix type cast of uid_t, gid_t
1012
10131.6.3 (31-10-2002):
1014 * fix options for Sun/Solaris native compiler
1015 * sh_unix.c: MSG_FI_LIST (line 2333): cast theFile->size to fix error
1016 * test sstrip on freebsd
1017 * default config file for freebsd
1018 * make target to build .deb packages
1019 * sh_readconf.c: fix bug in error message
1020 * samhain.c, sh_suidchk.c: fix initialization of suidchk
1021 * samhain-install.sh.in: don't remove config file by default
1022 * samhain-install.sh.in: support complete de-installation
1023 * samhain-install.sh.in: add support for Gentoo, FreeBSD, and Solaris
1024 * samhain-install.sh.in: check more paths
1025 * sh_unix.c: fix sys_siglist declaration [NetBSD portability issue]
1026 * sh_calls.c: save error message in retry_lstat()
1027
10281.6.2 (04-10-2002):
1029 * make target to build rpms
1030 * update samhain.spec.in, samhain.startRedHat
1031 * support DESTDIR, as in 'make DESTDIR=/what/ever install'
1032 * explicitely set -fno-omit-frame-pointer b/o gcc bug
1033 * mv configure.in to configure.ac to benefit from autoconf wrapper
1034 * sh_modules.c, sh_modules.h: add mod_reconf() to run at SIGHUP
1035 * slib.c: fix debug messages (no msgs for dlogActive <= 1)
1036 * sh_schedule.c, samhain.c, sh_suidchk.c:
1037 scheduler may accept multiple schedules
1038
10391.6.1 (04-09-2002):
1040 * sh_schedule.c: bugfix (executes only after first day)
1041 * rm obsolete WITH_TRACE stuff
1042 * new dlog() function for debug logging
1043 * some more descriptive error messages
1044
10451.6.0 (27-08-2002):
1046 * omit the -fomit-frame-pointer option (bugs in some gcc versions ?)
1047 * sh_error.c: fix escape mode when logging to database
1048 * sh_forward.c: fix error (twice escape) in recv_syslog_socket
1049 * sh_tools.c: change escape mode for server-received data
1050 * sh_mem.c: change ulong -> size_t in sh_mem_malloc()
1051 * configure.in: fix localstatedir if --prefix=USR
1052 * sh_hash.c: snprintf() -> sl_snprintf()
1053
10541.5.5 (07-08-2002):
1055 * sh_err_log.c: fix incorrect xml syntax for client messages
1056 logged by server
1057 * sh_err_log.c: fix incorrect '</trail>' entries on client EXIT
1058 * sh_files.c: introduce file_class_next
1059 this fixes the problem that a policy for the directory
1060 inode erroneously becomes a policy for the directory itself.
1061
10621.5.4 (17-07-2002):
1063 * sh_hash.c: fix buffer overflow with (micro-)stealth
1064 * sh_database.c: set path[] 1024 -> 12288
1065 * sh_database.c: set query[] 2048 -> 16383
1066 * sh_database.c: set values[] 1024 -> 16383
1067 * sh_forward.c: larger limit for message size (16 kB)
1068 * trustfile.c: set MAXFILENAME 2048 -> 4096
1069 * fixed a bug in the handling of filenames with embedded newlines
1070 * sh_files.c: fix missing sh_util_safe_name() in debug output
1071 * --with-sender can specify a full address
1072 * fix xml log in a backwards compatible way
1073
10741.5.3 (03-07-2002):
1075 * fix combination of stealth and sql logging
1076 * fix some more places where invalid UIDs/GIDs trigger errors
1077
10781.5.2 (01-07-2002):
1079 * include solaris config file from (sean [at] boran d.o.t com)
1080 * test for files/dirz defined twice in the configuration file
1081 * option to disable reverse lookup on outbound connections
1082 * option to use socket peer as client name (with name resolving)
1083 * sh_html.c: fix an HTML bug (twice </head><body>)
1084 * sh_suidchk.c: fix warning on AIX b/o dirname()
1085 * allow logging server -> syslog if yule is NOT configured to
1086 receive syslog messages
1087 * define PRIi64 to "lld" if undefined
1088 * invalid UIDs: use gid/uid as name, error level SeverityNames
1089 * minor fixes for connect_port
1090 * sh_hash.c: flush output of db listing before _exit()
1091 * configure.in: fix incorrect default ${install_name} for server
1092 * configure.in: try harder to find mysql.h / libpq-fe.h
1093 * sh_files.c: sh_files_checkdir:
1094 closedir() early to not exhaust OPEN_MAX
1095
10961.5.1a (30-05-2002):
1097 * fix missing LSB init script
1098
10991.5.1 (27-05-2002):
1100 * fix '-t update' option
1101
11021.5.0a (23-05-2002):
1103 * fix configure.in
1104
11051.5.0 (22-05-2002):
1106 * include solaris nosuid patch from (nathoo [at] co d.o.t ru)
1107 * similar fix for bsd nosuid
1108 * speed up -t update
1109 * convert manual to DocBook, distribute html and ps
1110 * fix some more problems with configure.in, Makefile.in
1111 * fix testsuite, add tests for udp, mysql
1112 * MSG_TCP_MSG: host -> remote_host
1113 * convert to autoconf 2.53
1114 * make c_bits.sh exit with status 0
1115 * sh_database.c #include "mysql.h" --> <mysql.h>, ditto libpq-fe.h
1116 to avoid dependency tracking problems
1117 * samhain.c remove *YULE* #ifdefs
1118 * acconfig.h remove *YULE* #undefs
1119 * samhain.c: procdirSamhain: lstat --> stat (allow symlink)
1120 * configure.in: add checks for correct user input
1121 * Makefile.in: add automatic dependency tracking
1122 * depend-gen: tool to figure out dependencies
1123 * chkconfig comments in redhat start scripts
1124
11251.4.8:
1126 * sh_database.c: fix missing attr_old, attr_new, (from)host columns
1127 * configure.in, Makefile.in: fix an error in the configfile
1128 definition with REQ_FROM_SERVER
1129 * sh_err_console, sh_err_log: avoid recurrent failure messages
1130 * timeout on read from files (/proc)
1131 * fix errrors with setjmp/longjmp/alarm
1132 * fix memory leak in server (~20 byte/file download in sh_tools, 930)
1133 * check gpg signature for files downloaded from server, add a
1134 regression test
1135 * fix chown in solaris bootscript
1136 * provide second scheduler for file check
1137 * provide scheduler for file check
1138 * provide scheduler for SUID check
1139
11401.4.7 (08-04-2002):
1141 * make daemon control LSB-compliant (arguments, exit status)
1142 * set log_ref = 0 for server messages
1143 * boolean option SetDBServerTstamp to disable entering server
1144 timestamps for received client messages into database
1145 * sh_suidcheck: check for "nosuid" mount option if getmntent is used
1146 * fix logrotate script in manual (reported by Scott Worthington)
1147 * don't strip numerical IP addresses
1148 * check item->status_now != CLT_TOOLONG in client_time_check()
1149 * set log_host to client in db client message
1150
11511.4.6a (20-03-2002):
1152 * define prefix in deploy.sh
1153
11541.4.6 (19-03-2002):
1155 * modify samhain_hide.c to hide processes on new Linux kernels
1156 * better error diagnostics in kern_head.c
1157 * fix compile error in all_items ()
1158 * check length of install-name in enable-khide (max is 15)
1159 * define exec_prefix in deploy.sh.in
1160 * make configure a bit more cross-compiler friendly
1161
11621.4.5 (07-03-2002):
1163 * Make sure missing file is reported even if ptr->reported == S_TRUE
1164 because the file has been added.
1165 * propagate 'reported' flag from sh_files_checkdir() into file list
1166 * close checkfd in sh_gpg_check_file_sign()
1167 * sh_derr(): kill(parent, SIGCONT) after ptrace(PT_DETACH,...)
1168 * use sh.srvcons.name in dbg() to get debugging info from daemon
1169 * option to log file timestamps with localtime instead of GMT
1170 * comment out MSG_FI_ADD in sh_dirs_chk () - obsoleted by mandatory
1171 sh_files_filecheck(directory) that triggers MSG_FI_ADD in sh_hash.c
1172 * set ptr->reported = S_FALSE; for reappeared files in sh_files_chk()
1173 to make sure re-disappearing will get reported
1174 * new function sh_hash_set_missing() to remove file record
1175 without (duplicate) 'missing' message
1176 * make sure all items are reported for added files
1177 * fix stealth mode with sh_kern (encode sh_ks.h -> sh_ks_xor.h)
1178 * clarify in the documentation which gpg options to use for signing
1179
11801.4.4 (11-02-2002):
1181 * check that parent process has exited before writing PID file
1182 * promote MGG_W_CHDIR to SH_ERR_ERR
1183 * add error message to sh_unix_testlock
1184 * fix missing _() macro in sh_aud_set_functions
1185
11861.4.3 (05-02-2002):
1187 * don't check attributes for symlinks (may cause device access)
1188 * add USE mysql; USE samhain; to samhain.mysql.init
1189 * point out the MessageHeader/mysql problem in manual
1190 * add -lz to LIBS for mysql
1191 * strip after install, avoid double strip
1192
11931.4.2 (27-01-2002):
1194 * support for EGD
1195 * fix some more problems with install-deploy / deploy.sh
1196 * fix a bug in profiles/suselinux_i386/bootscript (INSTALL_NAME_)
1197 * fixed the 'external logging' test (init rather than none in rc file)
1198
11991.4.1:
1200 * SuSE: include run level 4+5
1201 * install location of hiding kernel modules changed - some insmod
1202 variants do not test for /lib/modules/$(uname -r)/module_name.o
1203 * new make targets 'install-deploy', 'uninstall-deploy'
1204 * fixed make targets 'deploydir', 'deploydirfast'
1205 * bail on unsupported CL option in deploy.sh
1206 * fix various bugs in deploy.sh
1207
12081.4.0 (16-01-2002):
1209 * fixed missing 'dirname' on Mac OS X
1210 * fixed && tested for/with postgres
1211 * 'user=' -> 'userid=' (reserved word in sql)
1212 * fix the endianess + size of file database; this changes db format
1213 for any non-Linux OS
1214 * --enable-old-format for old (V1.3) database format
1215 * getopt, samhain.c, samhain.h: option -f to loop if not daemon
1216 * sh_hash: list numeric + char data to allow file db update on
1217 server side
1218 * sh_database: modify handling of integer (long) data
1219 * sh_database: datetime in database
1220 * sh_database: hash field in database
1221 * sh_database: rewrite database insert string construction
1222 [use INSERT INTO log (fields) VALUES (values);]
1223 * makefile suse 7.x runlevel entries
1224
12251.3.7 (06-01-2002):
1226 * fix incorrect escape in sh_tools_safe_name
1227 * fix sh_error_handle (4. argument) in sh_extern.c
1228
12291.3.6c:
1230 * fix segfault in sh_database (mysql logging) on solaris
1231
12321.3.6b (03-01-2002):
1233 * fix syntax error ('==') in Makefile.in
1234 * fix configure.in (path for /lib/modules/$(uname -r)/build/include)
1235 * fix sh_kern.c (redeclaration of 'j')
1236
12371.3.6 (03-01-2002):
1238 * sh_kern.c: check integrity of int 80h vector
1239 (SucKIT rootkit - Phrack 58)
1240 * make sure childs in sh_kern are wait()'ed for
1241 * provide start/stop/restart/reload/status interface
1242 * fix a potential segfault (dereferenced NULL pointer) in the server
1243 * use sh_util_flagval for sh_unix_setdaemon
1244 * documentation for logging to SQL database
1245 * configure.in: check for -I/lib/modules/$(uname -r)/build/include
1246 * fix trustfile.c to ignore invalid users
1247 * separate 'make install-samhain' and 'make install-yule'
1248 * separate default log/pid/config files for server/client
1249 - less problems running server and client on same host
1250 * rewrite deploy.sh(.in):
1251 - don't use (make|install) if deploying
1252 - use command line options
1253 - better integrate into server environment
1254 - write install db
1255 * always write a pidfile if daemon
1256 * don't use server's config file as fallback for downloading client
1257 * don't overwrite config file when doing 'make install'
1258
12591.3.5 (28-12-2001):
1260 * fix --enable-message-queue for newer glibc versions
1261 * log to SQL database: implemented, but undocumented yet,
1262 needs to be tested further
1263 * xml: escape received syslog messages
1264 * xml: rename 'time' to 'tstamp'
1265 * make targets: make [un]install-[boot-]yule
1266 (for server-only installation)
1267 * fix samhain_hide.c for 2.4 kernel
1268 * fix sh_kern for updated samhain_hide.c
1269 * new option -j to just list the logfile
1270 * sh_getopt.c: recognize -Dt check for -D -t check
1271 * sh_tiger0.c: fix compiler warning (memmove) on Solaris
1272
12731.3.4 (12-12-2001):
1274 * sh_suidchk.c: option to limit files per second
1275 * sh_unix.c: option to limit (kilo)bytes per second
1276 * sh_hash.c: fix potential problem with '\n' in filename
1277 (not backward compatible if there are filenames with '=')
1278
12791.3.3 (03-12-2001):
1280 * sh_readconf.c, samhain.h, samhain.c, sh_suidchk.c:
1281 option SetNiceLevel to set scheduling priority
1282 * sh_hash.c: bugfix for database listing on Solaris
1283 * taus_seed: bugfix for emergency backup rng seed
1284 * sh_util_safe_name: fix for XML
1285 * sh_utmp_set_login_activate: use sh_util_flagval
1286 * sh_utils.c: sh_util_obscurename: rm 'space' from list
1287 * more backtrace macros
1288 * sh_util_flagval: fix bug to recognize 1/0
1289 * fix test scripts testtimesrv.sh, testext.sh (test.sh 6/5)
1290 * rm stray debug fprintf in sh_srp.c
1291
12921.3.2 (27-11-2001):
1293 * sh_hash.c: fix an error introduced in 1.3.1
1294 * set RLIMIT_CORE to RLIM_INFINITY if --enable-debug
1295
12961.3.1 (25-11-2001):
1297 * slib.c: get backtrace with --enable-debug
1298 * sh_unix.c: allow core dumps when --enable-debug
1299 * configure.in: fix default message queue permissions
1300 * sh_suidchk.c: automatically include suid/sgid files in database
1301 * sh_suidchk.c: check all suid/sgid files
1302 * sh_hash.c: don't insert duplicates when reading the database
1303 * sh_utmp, sh_kern, samhain: fix 1sec offset in timer
1304 * sh_unix.c: don't require /dev/random to be non-world-writeable
1305 * server: fix segfault in zAVLTree.c if avltree == NULL (no clients)
1306 * client: fix segfault on Solaris if path_conf == NULL
1307 * testrun_1b.sh: \(^/.*\) -> \(/.*\) for Solaris sed
1308
13091.3.0 (31-10-2001):
1310 * support compiling with GNU gmp library
1311 * set 3 sec timer on client_time_check to avoid excessive (and
1312 unnecessary) calls under heavy load
1313 * replace sl_strlen with a macro
1314 * store client_t structure in AVL tree
1315 * database format incompatible with previous format, up the magic#
1316 * sh_html.c: cache entry template for speedup
1317 * slib.c: reset islong(double) in sl_printf_count
1318 * sh_hash.c: report on rdev change
1319 * sh_hash.c: print size in 64 bit
1320 * sh_hash.c: save in absolute size types
1321 * sh_unix.c: get values as appropriate type (time_t, dev_t, ...)
1322
13231.2.10:
1324 * update MANUAL
1325 * sh_unix.c: tiger_hash -> tiger_generic_hash
1326 * sh_readcon.c: DigestAlgo option
1327 * sh_tiger0.c: add MD5 and SHA1
1328 * sh_unix.c: fix minor problem with win2k/cygwin
1329
13301.2.9 (17-10-2001):
1331 * fix problem with entry template/empty hostname
1332 * fix MASK_USER_ (MTM -> ATM)
1333 * typo fixed in configure.in (${install_name} -> {install_name})
1334 * bugfix group_old -> size_old in XML code
1335 * skip armor header in signed files
1336
13371.2.8 (29-09-2001):
1338 * Mac OS X: in sh_getopt.c, rename table[] to op_table[] to avoid
1339 obscure compiler warning
1340 * Mac OS X: fix test scripts
1341 * Mac OS X: import newest config.guess, config.sub from ftp.gnu.org
1342 * implement deadtime in syslog recv code to protect against flooding
1343 * sh_err_log: sl_close(fd) if lock|forward fails
1344 * compliance with Filesystem Hierarchy Standard -- Version 2.2 final
1345 * add policies User0, User1
1346 * fix compile problem (FreeBSD) in sh_suidchk.c
1347 * macro to check for debugger breakpoints (linux/i386)
1348 * check for solaris (does not work) in sh_derr (--enable-ptrace)
1349 * option to listen on 514/udp for syslog, drop root
1350 irrevocably if compiled thus
1351 * use (check_mask & MODI_ATM) to decide whether to reset utime
1352 * reset the policy masks on sighup
1353 * option to write XML log messages
1354 * cleanup of message catalog
1355 * modified error messages for BADCONN
1356 * error messages for Rijndael
1357 * block recursive error messages within sh_error_handler()
1358 - would hang the machine ... -
1359
13601.2.7:
1361 * sh_files, sh_utils: check top level directory
1362 * sh_kern, sh_cat, kern_head: check syscall code, fork subprocess
1363 for reading from /dev/kmem
1364 * include /boot in default samhainrc
1365 * change source distribution signing/packaging system
1366 * Makefile, README, MANUAL: adhere to file system standard,
1367 document new locations
1368 * fix a bug in samhain_hide.c
1369
13701.2.6:
1371 * reset list of trusted users before config file re-read
1372 * TrustedUser=... can be a list
1373 * fix severity for files missing from IgnoreAll
1374
13751.2.5:
1376 * include example_pager.pl, example_sms.pl scripts
1377 * explain paging/sms setup in docs
1378 * allow manual exclusion of a directory in suidcheck
1379 * automatically track all file changes
1380 * remove missing files from in-memory database
1381 * add $(KERN) to DEPLOYFILES
1382
13831.2.4:
1384 * log IP address for login/logout events, if supported by the OS
1385 * release block in globerr (callback)
1386
1387-------------
1388
13891.2.3:
1390 * fix problem with reading stealth configuration
1391 * fix a few formats in sh_cat.c
1392 * always use strncmp for file system type check in sh_suidchk.c
1393 (trailing 'fs' may be system specific for some types)
1394 * no bare LF in messages (RFC 2822)
1395 * no lines longer than 998 chars (RFC 2822)
1396 * fix error in testrc_1
1397
13981.2.2:
1399 * make tmp file directory a compile time option
1400 * fix minor bugs in tmp file allocator (potential memory leak,
1401 double slash if root directory)
1402 * obsolete testpipe script removed
1403
14041.2.1:
1405 * fix memory alignment in rijndael-api-fst.c: blockEncrypt()
1406 * fix byte order in HMAC code (compatibility fix for Linux/HP-UX)
1407 * removed a debug fprintf()
1408
14091.2.0:
1410 * fix a bug in the HMAC implementation (thanks to Cesar Tascon
1411 for help in tracking down this one)
1412 * module to check the file system for SUID/SGID files
1413
14141.1.16 (never released):
1415 * fix the recursion depth -1 option as described in the manual
1416 * optional database reload on SIGHUP
1417 * fix a race condition when checking that /dev/random is a charakter
1418 device
1419 * redirect stderr to /dev/null for c_random
1420 (AIX may segfault in netstat...)
1421 * check whether /dev/random is a charakter device in c_random.sh
1422 (we know at least one sysadmin who has set up a fake /dev/random ...)
1423 * don't give NULL as 2. and 3. arg to execve if not Linux - some
1424 Unices (notably Solaris) don't like it
1425 * init ptr = NULL in my_malloc (compiler warning)
1426 * make the bitmask for tests configureable (suggestion by A. Dunkel)
1427 * make the bitmask for tests a static variable
1428 * make (database/logfile/lockfile) path configurable
1429 (to run multiple instances of samhain from an NFS share - on the
1430 wishlist of J. Patton)
1431
14321.1.15 (never released):
1433 * fix minor error in testcompile.sh (rm test_log only at start)
1434 * return from subroutines on sig_terminate == 1
1435 (faster exit on SIGTERM)
1436 * fix re-configuration of addresses
1437 * use sh_util_flagval() in sh_mail_setFlag and sh_kern_set_activate
1438 * SysV message queue as compile option
1439 * config file option to set console device
1440 * removed the pre 1.1.9 code bloat
1441 * don't print the LOGKEY to the console
1442
14431.1.14:
1444 * fix an error in the setup consistency check
1445 * make target to uninstall runtime files
1446 * trustfile.c: check return code of readlink(), fix off-by-one error
1447 * sh_files.c: fix placement of terminator after readlink() call
1448 * sh_files.c: fix a missing set_suid()/unset_suid()
1449 - suid should work, but is not recommended -
1450 * more debug statements in c/s code
1451 * avoid re-entry in sh_unix_sigexit
1452 * put a block around free() and malloc() in wrapper functions
1453 * ditto for glob()/globfree(), regcomp()/regfree(), fdopen()/fclose()
1454 - i.e. avoid corrupting the heap from a signal handler -
1455
14561.1.13:
1457 * optimized the size of the configure script somewhat
1458 * modify the compile and hash test scripts
1459 * read '\0's in sh_unix_getline
1460 * exponential schedule for connection attempts
1461 * make stealth working properly with signed files
1462 - config file should be signed now before embedding in picture -
1463 * fix a race in using signed files
1464 * updated err messages for PWNULL, GRNULL
1465 * add missing shell script for test 11
1466 * add mandatory source file/line info with -p debug
1467 * add mandatory source line info with BADCONN
1468 * fix a latex error in the manual
1469
14701.1.12:
1471 * debug output to console if compiled with --enable-debug and
1472 running as daemon
1473 * make reportonlyonce=true the default
1474 * make sure state changes of a file are always reported, even
1475 with reportonlyonce=true
1476 * Linux kernel modules (samhain_hide, samhain_erase)
1477 * fixed incorrect return value of sh_util_flagval
1478 * fixed an error in sh_files.c: happens with -t init and first
1479 file that is checked does not exist
1480 * revised install/uninstall targets in the Makefile
1481 * module to check for clobbered kernel syscalls (tested on Linux 2.2)
1482 * more diagnostic error messages in sh_gpg.c
1483 * more diagnostic error messages in sh_mail.c
1484 * error in mail.c fixed
1485 (address -> address_list[i] for multiple recipients)
1486 * docs updated, better(?) explanation of signed files
1487 * skip over path in gpg checksum output
1488 * check client name against IP address and FQDN
1489 * fix for --disable-* in config file
1490 * fixed a server crash (MSG_TCP_OKMSG without arg)
1491 if the server is run with debug level output threshold
1492 * catch EAGAIN in sh_gpg.c pipe reader
1493 * fix the 'external logging' test to make it work on BSD
1494 * error message if no local path to init DB
1495 * check for i86/Solaris in configure (vsnprintf prototype)
1496 * make SRP the default
1497
14981.1.11:
1499 * make log file verification more convenient
1500 * fix problem with message classes in stealth mode
1501 * linux: do not try to read file attributes for devices
1502 * handle the root directory correctly (avoid "//" in listing)
1503 * fix problems with blockin on FIFOs/char dev
1504 pointed out by I. Rogalsky (rog@iis.fhg.de)
1505 - open in nonblocking mode for read, then set to blocking
1506 - open file only if regular
1507 * fix alignment in memory profiler
1508
15091.1.10:
1510 * minor code cleanup
1511 * fix an error in trustfile.c (handling of empty/incomplete
1512 group entries in /etc/group, bug report by A. Capriotti )
1513
15141.1.9:
1515 * compatibility option for old behaviour (plain hash instead
1516 of HMAC, ECB instead of CBC mode)
1517 * use CBC rather than ECB mode for encryption
1518 * use HMAC-TIGER for message authentication codes
1519 * handle NULL data in sh_tiger_hash
1520 * option to set syslog facility (default is LOG_AUTHPRIV)
1521 * longer timeout (300 sec) on /dev/random if no /dev/urandom
1522 * fix minor output error with stealth option
1523 * option not to log names of config/database files on startup
1524
15251.1.8:
1526 * fix error in syslog routine
1527 * fix missing 'test' in configure.in
1528 * fix error in replace_tab() in sh_html.c
1529 * fix minor memory leak in sh_util_regcmp()
1530
15311.1.7:
1532 * timeout on read_mbytes (from /dev/random; fallback to /dev/urandom)
1533 * fix for FreeBSD: ut_user -> ut_name in sh_utmp.c
1534 * fix for Alpha: consider $ac_cv_sizeof_unsigned_int_ in configure.in
1535 * fix for Alpha: format string in sh_tiger0.sh
1536 * on Linux, now compiles cleanly with
1537 -Wall -W -Wstrict-prototypes -Wcast-align
1538 * fix problem with recursion depth
1539 (pointed out by Vic <hvicha@mail.ru>)
1540 * #include "sh_tools.h" in sh_unix.c and fix the
1541 --with-timeserver option (reported by Vic <hvicha@mail.ru>)
1542 * place read_port(), MSG_TCP_NETRP outside ifdefs
1543 * close fd/zero skey before execve
1544 * verify client name against socket peer
1545 * ... with configureable error priority
1546 * use strcmp() rather than strncmp() in search_register()
1547 * fix race between lstat() and open() for checksum
1548 (reported by dynamo <dynamo@ime.net>,
1549 JJohnson <JJohnson@penguincomputing.com>)
1550 * enable globbing for filenames
1551 * fix Solaris problem: siginfo_t may be NULL
1552 * fix missing SL_EBADGID in tf_trust_check
1553 * test case for external scripts, fix flushing pipe
1554 * fix a typo in sh_ext_type
1555 * do an fdexec w/checksum on Linux if calling external program
1556 * even safer tmp file creation
1557 * allow db update
1558 * fix compile options for --enable-debug
1559 * fixed a spelling error in the output
1560 * test program for full CS support (config/database download)
1561 * tell which file is searched for cs download
1562
15631.1.6:
1564 * fix bug in sh_readconf_line (segfault on erroneous config lines)
1565
15661.1.5:
1567 * sh_unix.c: sh_unix_getinfo_attr: f -> flags
1568 * use gettimeofday as last resort
15691.1.4:
1570 * fix AIX compiler warning in sh_forward (cast arg1 of sh_tiger_hash
1571 to (char *)
1572 * configure: add static link flags for some more os (from tar)
1573 * don't strip twice (some stupid systems abort)
1574 * fix for reading from /dev/random on non-Linux systems (untested)
1575 * sh_mail.c: end all message lines with \r\n
1576 * stealth: ignore \r, \"
1577 * take out tracing from --enable-debug (presently useless anyway)
1578 * fix some remaining cleartext with debug && stealth combined
1579 * fixed a small memory leak in sh_err_log.c
1580
15811.1.3:
1582 * fixed circular logic in taus_seed() (fallback method only)
1583 * fix for missing _SC_OPEN_MAX (runaway close())
1584
15851.1.2:
1586 * implement message classes
1587 * let server recognize client message severity and class
1588 * secondary log server
1589 * keep database in memory (allows to close file
1590 if retrieved from server)
1591 * encrypt client/server communication
1592
15931.1.1:
1594 * Compilation problems with native Solaris compiler fixed
1595 * fill in euid/ruid variable
1596 * manual.pdf --> MANUAL.pdf
1597 * debug sh_util_formatted()
1598 * http refresh 120sec for server stat page
1599 * trace/debug options
1600 * fixed problem with utmp.c options
1601 * fixed problem with sh_mail_setaddress
1602 * option for custom message header
1603 * fixed problem in compdata
1604 * fixed problem in mail verification
1605 * remove eventual trailing '/' in file names
1606 * fixed problem with report string for modified files
1607 * option to report in full detail
1608
16091.1.0:
1610 * Move error messages to catalog
1611 * Make error message format more uniform
1612 * Wrap sytem calls that could be interrupted by signals
1613 * Warn on append to database
1614 * Option for full details on mod. files
1615 * Option to report only once on mod. files
1616 * Generally speaking, major modifications with potential new bugs
1617
16180.9.5:
1619 * sh_hash.c: fixed erroneous checksum for config file
1620 * sh_html.c: fixed erroneous timestamp (last)
1621 * sh_tools.c: fixed connect_port (set port for cached address)
1622 * sh_srp.c: fix for '00' (='\0') in pw
1623 (last two fixes by Andreas Piesk)
1624
16250.9.4:
1626 * samhain.c: fcntl(1, ..) -> fcntl(2, ..)
1627 * sh_hash.c: copy 12 instead of 10 byte for c_attributes
1628 * 'empty directory' WARN -> INFO
1629
16300.9.3:
1631 * FreeBSD fixes:
1632 - c_random.sh: make sure /dev/random provides something
1633 rather than nothing
1634 - check for <netinet/in.h> and include it
1635 - include <sys/types.h> early
1636 - sh_utmp.c: fixed an occurence of ut_user
1637 - sh_utmp.c: #ifdef HAVE_UTTYPE static char terminated_line #endif
1638 - sh_forward.c: EBADMSG -> ENOMSG
1639 * sh_unix.c: check return value of gethostbyname
1640 * sh_entropy.c: fallback on /dev/urandom if /dev/random blocks for
1641 more than 30 sec
1642 * ... and fix the timestamp format ...
1643
16440.9.2:
1645 * ISO 8601 timestamps
1646 * Bugfix in sh_utmp (timestring overwrite)
1647 * don't use siginfo_t on Linux (garbage as of 2.2.14)
1648 * check for Linux capabilities bug when dropping root
1649 * include README for gcc compiler bug (pointed out by A. Piesk)
1650 * explicitely set -fno-strength-reduce with gcc
1651 * fixed ignoring missing files with the IgnoreAll policy
1652
16530.9.1:
1654 * more ext2flags (breaks backward database compatibility on Linux)
1655 * IgnoreAll policy modified - missing/added files reported with
1656 SeverityIgnoreAll (to handle files that may or may not be present)
1657 * Check all files, not only regular ones
1658 (bug in sh_files, originally introduced because checksum of
1659 regular files only is computed)
1660
16610.9:
1662 * use O_NOATIME if supported
1663 * --with-nocl takes argument (PW to re-enable CL parsing)
1664 * no daemon mode if initializing database
1665 * fixed segfault in yule with 'unknown file type' request
1666 * enlarged MAX_GLOBS 24 -> 32 and made the array linear
1667 * server uses last registry entry for any given client now
1668 * deploy.sh script to deploy clients to remote hosts
1669 * enhanced signal handling: SIGUSR1/SIGUSR2/SIGABRT/SIGQUIT/SIGHUP
1670 * allow y/Y/n/N for login monitoring (in addition to 0/1)
1671 * external logging scripts/programs
1672 * trustfile.c: define STICKY on Linux
1673 * reset signal mask when initializing
1674 * EINTR_RETRY wrapper
1675 * slib: sl_read, sl_write EINTR update
1676 * use sstrip when installing
1677 * more compact database format (breaks backward database compatibility)
1678 * larger download packets
1679 * TcpFlags unsigned char
1680 * cast to (char *) head in write_port
1681 * m(un)lock cast to (char *)
1682 * (1 << 31) --> (1UL << 31)
1683 * support e2fs attributes on Linux
1684 * fixes for AIX and Solaris native compilers
1685 * fixed Makefile for non-GNU make (pattern rule --> suffix rule)
1686
16870.8.1:
1688 * fixed 'is_numeric()' return value
1689
16900.8:
1691 * added option for static compilation
1692 * added option for stealth with non-hidden config file
1693 * added option for disabling command line parsing
1694 * all options can be set in the configuration file now
1695 * stealth: xor strings in database file
1696 * fixed bug in mailer code ([] in HELO)
1697 * print timestamp when asking for key
1698 * 'micro' stealth mode (no hidden configuration file)
1699 * simplified slib
1700 * int->long for uids/gids in trustfile
1701 * moved mailkey from data to code
1702 * shell script for entropy (stronger default key)
1703 * general code cleanup
1704 * better error checking in client/server code
1705 * detect out-of-sync messages
1706 * check state across protocol passes in server
1707 * make sure authentication is mutual
1708 * file download to client
1709 * reserve six file descriptors in server
1710 * mlock queue buffer if LOG_KEY
1711 * improved robustness in bignum (don't fail on free())
1712 * per-directory recursion depths
1713 * RFC821 compliance: empty line at end of header, To field, Date field
1714 * RFC821 compliance: make e-mail transfer relieable
1715 * fix detection of hardlink changes
1716 * checksum verification for calling gpg/pgp
1717 * CL option '-S' not required for server-only binary
1718 * eliminate CL options that may leak privileged information
1719 if the program is SUID
1720 * skip leading white space in configuration file
1721 * allow nested conditionals in configuration file
1722 * allow whitespace before and after '=' in configuration file
1723 * don't leak file descriptors to child processes
1724 * make message transfer relieable
1725 * always report error on abnormal termination of connection
1726
17270.7:
1728 * support for alpha machines
1729 * stop TCP logging after exit message
1730 * limit connections in server (DoS attacks)
1731 * move string handling to slib
1732 * move file handling to slib
1733 * timestring without space
1734 * changed report format
1735 * SUID bugfix - use euid when checking logfile ownership
1736 * SUID bugfix - get root for lstat()
1737 * SUID bugfix - get root for opendir()
1738 * store number of hardlinks
1739 * send no message if polling empty queue
1740 * include tiger 64-bit implementation (portability)
1741 * codes for error conditions
1742 * mail check: handle multiple, overlapping audit trails
1743 * security fix: no append to database if SUID
1744 * fix sh_entropy.c (BUFSIZ -> BUF_ENT)
1745 * read command line before config file
1746 * PGP signing of config/database files
1747 * checksum of config file reported
1748 * checking for attributes only
1749
17500.6:
1751 * more syslogish priority specification
1752 * fixed segfault in sh_mem_check, apparently this was also
1753 the reason for the segfault in atexit()
1754 * allow for compilation with SRP authentication
1755 * fixed tiger checksum computation
1756 * fixed broken logfile verification for second and further audit trails
1757 * test program added
1758 * documentation improved
1759 * sh_forward_make_client: bug fixed in[8]->in[i]
1760 * sh_error.h: fixed missing #include <errno.h>
1761 * configure.in: fixed missing strerror() test
1762 * sh_utmp.c: check logins/logouts
1763 * check for missing files
1764 * only reset access time if necessary
1765 * O_EXCL in open()
1766 * limit environment to TZ in execve (sh_entropy.c, not used on Linux)
1767 * use trustfile() to determine whether logfile dir is trustworthy
1768 * strip head instead of tail for numerical address
1769 * store messages in fifo during log server outage
1770 * re-init session key after server outage
1771
17720.5 (21-12-1999):
1773 * added option for mail relay server
1774 * own popen() implementation in sh_entropy() (portability)
1775 * fixed error in sh_util_basename() (returned NULL for base == "/")
1776 * fixed segfault in strlcpy/strlcat (check for src == NULL)
1777 * FILENAME_MAX -> PATH_MAX (HP-UX 10.20)
1778 * use TIGER for 32-byte compilers (portability)
1779 * fixed hash function (do not include stdlib.h)
1780 * flush buffer before write in mailer code (IBM AIX 4.1)
1781 * make mailer code non-forking
1782 * cast argument of is...() to int (portability)
1783 * return() after _exit() for braindead compilers (portability)
1784 * optionally use inet_addr (portability)
1785 * check for broken mlock() (HP-UX 10.20)
1786 * minor code cleanups
1787 * fixed incorrect size of munlock()'ed memory in sh_error_string()
1788 * fixed a buffer overflow in the error printing routine
1789 * fixed a buffer overflow in sh_util_safe_name ()
1790 * implement SRP session key exchange
1791 * implement client/server facility
1792 * implement @host/@end construct in configuration file
1793 * preferably use uname(), and do gethostbyname() for FQDN
1794 * make vernam cipher base numeric
1795 * make OnlyStderr private in sh_error
1796 * test -e "/dev/random" --> test -r "/dev/random" (portability)
1797 * check for libsocket (portability)
1798 * add #defines for IPPORT_SMTP, IPPORT_TIMESERVER (portability)
1799 * eliminate superfluous /proc test
1800 * some unreachable code removed
1801 * cast to (byte*) replaced by cast to (word64*) in sh_tiger_hash()
1802 * check for setresuid() if no seteuid() (HP-UX 10.20)
1803
18040.4 (09-11-1999):
1805 * make sure output from /dev/random has no NULL's
1806 * one-time pad encryption for emailed keys
1807 (better than nothing ...)
1808
18090.3 (04-11-1999):
1810 * logfile readable for group
1811 * verify signatures for any file
1812 * signature block in tarball
1813 * use select() in time server routine
1814 * better protection for session keys (mlock)
1815
18160.2:
1817 * fixed incorrect man page
1818 * fixed incorrect example rc file
1819 * recursive error logging should work now
1820
18210.1:
1822 * initial release -- on Samhain 1999, of course
1823
1824development start:
1825 * probably 29-06-1999
1826
Note: See TracBrowser for help on using the repository browser.