source: trunk/docs/Changelog@ 192

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

Fixes for cygwin, and improved error diagnostics (tickets #126, #127, #128).

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