source: trunk/docs/Changelog@ 211

Last change on this file since 211 was 211, checked in by katerina, 16 years ago

Allow shell expansion for cofiguration file values (ticket #137).

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