source: trunk/docs/Changelog@ 210

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

Fix for ticket #136 (compile error); also enhance testsuite to catch compiler warnings.

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