source: trunk/docs/Changelog@ 227

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

Fix warnings with -fstack-check

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