source: trunk/docs/Changelog@ 491

Last change on this file since 491 was 491, checked in by katerina, 9 years ago

Fix for ticket #389 (libwrap) and #390 (update on FreeBSD).

File size: 105.4 KB
Line 
14.1.1:
2 * fix problem with baseline update on FreeBSD and probably other
3 non-GNU/Linux systems (reported by L.Vasiliev)
4 * fix bad check_libwrap() call in sh_xfer_server.c
5 (reported by L.Vasiliev)
6
74.1.0:
8 * fix quirks with Linux audit support
9 * implement 'silent check' (requested feature)
10 * fix call of self_check for exit on sigterm
11 * fix safe_logger() - uses the logger utility with a non-posix option
12 * fix missing reporting on shell expansion capability in --version
13 * fix missing error message on invalid list for skipchecksum
14 (reported by Bond)
15 * fix missing definition for a sh_dummy_ var on BSD et al.
16 (reported by Andrew)
17
184.0.0:
19 * fix and document default settings for mounts check
20 * new -w CL option to wait on scan completion
21 * new option ReportCheckflags
22 * enhance testsuite to cover new functionality
23 * implement draft for change control integration:
24 * new database format to store change flags
25 * refactoring of db I/O and client/server code
26 * option StartupLoadDelay
27 * --create-database CL option
28 * --outfile CL option
29 * --binary, --list-filter CL options
30 * --verify-database CL option
31 * yulectl -c DELTA:<uuid> command
32 * option SetDeltaRetryCount
33 * option SetDeltaRetryInterval
34 * update documentation
35 * remove old/unused code
36 * fix compiler warnings with gcc 5.1.0
37 * update config.sub, config.guess
38
393.1.6 (08-06-2015):
40 * Modify testcompile.sh to remove 'smatch' and use 'clang'
41 instead.
42 * Fix compile problems with clang.
43 * Modify testcompile.sh to remove 'uno' and use 'cppcheck'
44 for static checking
45 * Move AC_CHECK_FUNCS( getnameinfo getaddrinfo ) behind
46 the check for libsocket to have them found on Solaris
47 * Fix IPv4-only bug in bind_addr use in retry_connect()
48 * Add more debug code in connect_port()
49
503.1.5 (26-03-2015):
51 * Fix IPv6 issue with portcheck (need to be able to specify
52 IPv6 interfaces).
53 * Fix minor issues with bugs in testing code
54 * Add command line option '--server-host' to set the log server
55 * In samhain.startLinux.in start script template, add code to read
56 options from /etc/sysconfig/${NAME} for RedHat
57
583.1.4 (17-02-2015):
59 * Add non-existent file to the regression test config
60 * Fix erroneous call to sh_hash_init when a missing file
61 is specified in the configuration
62 * Fix buffer allocation for getgrnam_r for large groups
63 (problem reported by Sergio B)
64 * Search RPM in $HOME/rpmbuild if test -d _topdir fails (CentOS
65 recommends '%(echo $HOME)/topdir', reported by E. Taft)
66
673.1.3 (01-11-2014):
68 * Remove initgroups() from the popen call in unix entropy gatherer
69 * Add error message for update mode if local baseline cannot be found
70
713.1.2 (07-08-2014):
72 * Fixed incorrect memset in sh_checksum.c (sha256)
73 * Circumvent a gcc compiler bug with inline asm (gcc 4.8)
74 * Allow multiple exclusions for SUID check
75 * Use calloc instead of malloc
76 * Add overflow check in minilzo.c (but the potential integer
77 overflow [CVE-2014-4607,LMS-2014-06-16-1] is irrelevant anyway
78 because the function is never used on external data).
79 * Fixed a minor bug in exepack_fill.c that was unearthed by the minilzo
80 overflow check (the required buffer length information for the check
81 wasn't provided)
82 * Fixed incorrect logic in setting the ALLIGNORE flag (more specific
83 directory / file directives were ignored)
84 * Fix for tickets #358 (repetitive lstat warning about deleted
85 directory) and #359 (reporting of deleted/added top level directory)
86 * Fix a free() on NULL (harmless but avoids spurious warning)
87
883.1.1 (01-05-2014):
89 * Disable inline asm on Cygwin (issue reported by Erik)
90 * Fix sh_ipvx_is_ipv4 such that numeric hostnames are not
91 incorrectly recognised as IP address (reported by A. Hofland)
92 * Fix sh_ipvx_is_ipv6
93
943.1.0 (31-10-2013):
95 * Add support for SHA2-256 checksum function
96 * Drop support for --enable-khide on kernel version 3.x and above
97 * Fix IgnoreAdded to anchor regex at beginning of path (reported by
98 R.Lindner)
99 * Add check to detect availability of pmap_getmaps() (missing in
100 static library on recent Linux systems as reported by Ian Baldwin)
101 * Fixes for Ubuntu 13.4:
102 - no error msg for failing stat on /run/user/Username/gvfs in
103 suidcheck
104 - no error message for failing hardlink check on /run/user/Username
105 - eliminate compiler warnings
106 * Add option '--disable-asm' to work around a gcc issue in Debian
107 unstable (reported by micah)
108 * Remove option '-i' from mkitab in samhain-install.sh.in (reported
109 by N. Kerski)
110
1113.0.13 (11-06-2013):
112 * Fix detection of nonfunctional /dev/kmem
113 * Fix race condition in GrowingLogfiles policy that
114 causes spurious reports (problem noticed by J. Daubert)
115
1163.0.12 (16-05-2013):
117 * Fix compiler warning in bignum.c (unused parameter)
118 * Detect if /var/run is a symlink and /run exists
119 * Fix for broken support for audit subsystem (reported
120 by isquish)
121 * Fix for incorrect use of sh_inotify_add_watch_later
122 which causes a steady increase in memory usage
123 (issue reported by Maxime V)
124 * Fix for potential minor memory leak
125 * Fix for bug in negated conditionals for config file
126 (reported by M. Ward)
127
1283.0.11 (08-04-2013):
129 * Fix for compile error on HP-UX (reported by P. Alves)
130 * Propagate ERANGE error from getgrxxx_r (issue raised by C. Feikes)
131 * Fix reconnecting to database for Oracle
132 * Add better logrotate handling for the GrowingLogs policy (search
133 rotated log and verify it, don't report if this succeeds)
134 * Add ability to create debian packages with preset password (use
135 env var PASSWORD)
136 * Add option KernelCheckProc (bool) to suppress kernel /proc test
137 * Add option IgnoreModified to cover transient files that
138 not only get added/deleted but also modified
139
1403.0.10 (13-01-2013):
141 * Revert to previous logic in samhain.c because it will block
142 otherwise (reported by Alexandr Sabitov)
143
1443.0.9 (21-12-2012):
145 * Fixed a Cygwin compile warning
146 * Change logic in samhain.c to make sure inotify doesn't cause
147 excessive full scans
148 * Add option IgnoreTimestampsOnly in Windows registry check (ignore
149 changes if only timestamp has changed)
150 * Fix the probe command (misses clients if their startup message
151 has been missed)
152 * Fix the RPM spec file for --enable-network=client and no password
153 (reported by Mitch St Martin)
154 * Fix build error with Linux audit (reported by Andy Jack)
155 * Fix detection of utmpx.h (reported by D. Thiel)
156
1573.0.8 (01-11-2012):
158 * rename to 3.0.8 for release
159 * useful exit status for samhainadmin.pl --examine
160
1613.0.7a (25-12-2012):
162 * add ability to create RPM with preset password (use
163 env var PASSWORD)
164 * fix the rpm-light makefile target
165 * fix minor bug in samhain_setpwd.c (incorrect error message)
166
1673.0.7 (25-10-2012):
168 * update documentation for prelude
169 * fix configure to properly search for Oracle Instantclient SDK
170 * pass through TNS_ADMIN environment variable for Oracle
171 * optimize audit rules automatically
172 * zero out the html status file at server exit
173 * don't check for assembly optimization unless linux or *BSD
174
1753.0.6 (01-09-2012):
176 * install logrotate script if /etc/logrotate.d is detected
177 * new option --enable-suid for nagios
178 * fix for --enable-ptrace: make the save_tv variable thread specific
179 * fix bug in inotify code which made it follow symlinks (by [anonymous])
180 * fix two missing SH_MUTEX_LOCK(mutex_thread_nolog) (by [anonymous])
181 * fix for 'no such process' message from sh_fInotify_init_internal()
182 (by [anonymous])
183 * fix for --enable-ptrace with threads (by [anonymous])
184 * option SetReportFile for writing out summary after file check
185
1863.0.5 (11-07-2012):
187 * fix xml format templates for registry check
188 * fix database download on registry check init (reported by ldieu)
189
1903.0.4 (01-05-2012):
191 * fix verbosity of message for alerts on already deleted watches
192 (set it to debug - suggested by xrx)
193 * fix extraneous error messages about file not found from
194 sh_fInotify_init_internal() (bug reports by xrx and aj)
195
1963.0.3 (28-03-2012):
197 * fix potential deadlock in sh_ext_popen()
198 * make sure sh_processes_readps cannot hang forever
199 * fix for deadlock if sh_processes_readps hangs
200 * fix for deadlock if suid check and inotify are used together
201 (reported by A. Jack)
202 * fixed problem with samhain_stealth.c (handle input config
203 files that don't end with a newline)
204 * fixed compiler warnings for yulectl.c with stealth
205 * fixed lacking support for O_NOATIME on 64bit linux
206
2073.0.2a (23-02-2012):
208 * Fix compile error on Solaris 10
209
2103.0.2 (16-02-2012):
211 * change sql init scripts to make bigint fields unsigned (problem
212 reported by A. Sabitov)
213 * patch by Andy Jack for issue with the --with-gpg option (hangs with
214 high cpu load at startup)
215 * call ./samhain-install.sh as /bin/sh ./samhain-install.sh in the
216 RPM spec file, because /var might be mounted noexec (reported by GC)
217 * fixed configure.ac for the case that --with-gpg and --enable-nocl are
218 used (./samhain for gpg checksum; problem report by Andy Jack)
219 * fixed a potential NULL pointer dereference in sh_inotify.c on
220 systems where inotify is not available (reported by <anonymous>)
221 * fixed: the config file template mentions (in a comment) the
222 non-existent directive SetLockPath instead of the correct
223 SetLockfilePath (reported by Curtis).
224 * fixed: the definition of O_NOATIME isn't seen in sh_files.c.
225
2263.0.1 (07-12-2011):
227 * fix a memory leak (reported by C. Westlake)
228 * fix an uninitialized variable in the suidcheck code (problem
229 reports by T- Luettgert and Kai)
230 * fix a bug in the port check with --disable-ipv6 (reported
231 by C. Westlake)
232 * fix potential deadlock in sh_files.c (reported by S. Mirolo)
233 * change Makefile.in to stop on compile error rather than at link stage
234 (suggested by S. Mirolo)
235 * fix compile errors caused by missing #define (pthread disabled) and
236 wrong function call (OSX specific code), reported by S. Mirolo
237 * fix warning by the llvm/clang static checker
238 * fix compile issues on freebsd
239 * handle (ignore) SIGPIPE more thoroughly
240 * update config.guess, config.sub
241
2423.0.0a (06-10-2011):
243 * Fix compile-time issues on RHEL5 (reported by Thomas)
244
2453.0.0 (01-11-2011):
246 * Add support for the inotify API
247 * If --disable-shellexpand is used, also disable setting
248 the prelink/ps paths
249 * Fix missing check_mask storage for glob pattern
250 * Add support for integer keys in zAVL
251 * Fix compiler warnings with gcc 4.6.1 (variables that get set
252 but then remain unused)
253 * Add more server-side debugging for IPv6
254 * Make kern_head compile with 3.x kernels
255
2562.8.6 (20-09-2011):
257 * Manual updated.
258 * Added an option LogmonDeadtime to avoid repetitive reporting
259 on correlated events.
260 * Fix problems with timestamp handling in logfile correlation
261 (problem reported by D. Dearmore)
262 * List the policy under which a directory/file is checked
263 * Option to use a textfile with a list of files for update
264 * Fix --enable-db-reload option (reported by David L.)
265 * Fix samhain_kmem compilation, need to compile under chosen
266 name if --enable-install-name is used (reported by David L.)
267 * Fix uninitialized string in error message (reported by mimox)
268
2692.8.5a (16-06-2011):
270 * Fix autolocal.m4 for new configure option
271
2722.8.5 (15-06-2011):
273 * Detect non-working /dev/kmem in configure script, and fix
274 a bug in the samhain_kmem kernel module.
275 * Fix wrong handler for LogmonMarkSeverity (reported by S. Chittenden)
276 * Better protection against the 'intruder on server' scenario
277 pointed out by xrx. Add option to disable shell expansion in
278 configuration files, and check gpg signature earlier.
279 * Support /opt/local/bin in the Unix entropy gatherer (suggestion
280 by Sean Chittenden)
281 * Cache timeserver response for one second (suggestion by
282 Sean Chittenden)
283
2842.8.4a (11-05-2011):
285 * Fix for compile error with --with-prelude
286 (reported by Sean Chittenden), missing regression test added
287 * Fix for compile error with --enable-udp (reported by Sean Chittenden),
288 missing regression test added
289
2902.8.4 (30-04-2011):
291 * Fix another reload bug in the log monitoring module
292 * Add unit tests for IgnoreAdded/IgnoreDeleted configuration directives
293 * Fix deadlock after reload when compiled with --enable-login-watch
294 (reported by M. Teege and O. Cobanoglu)
295 * Fix compile error for samhain_hide.ko with recent kernel
296 * Include patch by J. Graumann to specify the location of the
297 secret keyring with samhainadmin.pl
298 * Fix potential timeout problem in sh_sub_stat_int() and propagate the
299 error (issue reported by mtg)
300 * Add support for X-Forwarded-For in apache logfile parser, add
301 option 'RE{regex}' to insert arbitrary regex
302 * New options PortcheckMinPort, PortcheckMaxPort for the open ports
303 check
304
3052.8.3a (23-03-2011):
306 * Fix two 'label at end of compound statement' errors on FreeBSD
307 (reported by David E. Thiel)
308
3092.8.3 (22-03-2011):
310 * init scripts: load samhain_kmem.ko before samhain starts
311 * slib.c: eliminate mutex from sl_create_ticket()
312 * sh_entropy.c: move pthread usage out of child
313 * sh_hash.c, sh_pthread.c, sh_pthread.h: sh_hash_hashdelete()
314 needs deadlock detection, may be called from within sh_hash_init()
315 via atexit handler on error condition
316 * sh_suidchk.c, sh_calls.c, sh_calls.h: need a nosub version of lstat()
317 to use with relative path after chdir()
318 * samhain.c, sh_calls.c, sh_calls.h: only run (l)stat() in subprocess
319 after reading config file (to allow disabling)
320 * sh_unix.c: run sh_sub_kill() in parent after forking the daemon
321 * fix zeroing of result from getnameinfo() (problem reported by Richard)
322 * fix spurious warnings about unsupported address family (reported
323 by N Silverman)
324 * option to run lstat/stat in subprocess to avoid hanging on NFS mounts
325 (off by default)
326 * fix Windows/Cygwin compile error (reported by A. Schmidt)
327
3282.8.2 (16-02-2011):
329 * add function to skip checksumming
330 * Fix missing check for recursion depth >= 0 if not IgnoreAll
331 * Fix hardcoded path for temp directory in deployment scripts
332 * Fix bad compile on CentOS 4.8 with gcc 4.1.2
333 * Fix minor bug in check_samhain.pl (pointed out by J.-S. Eon long ago)
334
3352.8.1 (17-11-2010):
336 * Document handling of missing files with secondary schedule
337 * Fix incorrect handling of missing files when secondary schedule
338 is used (reported by Sergey)
339 * Fix null pointer dereference in config parse handler for SetMailAlias
340 (reported by Sergey)
341 * Fix incorrect memset() in sh_kern.c (passed struct by value...),
342 reported by Roman and Stefan
343 * Fix 'make install' to create user-defined directory
344 * fix minor issues noticed by T. Luettgert (test code assumes port
345 0/tcp is unused, wrong ifdef order (without impact on compilation))
346 * fix compile error on AIX 5.3 with --enable-login-watch,
347 reported by M. El Nahass (time.h missing in src/sh_login_track.c)
348
3492.8.0 (01-11-2010):
350 * Support IPv6
351 * Add registry checking
352 * Use auditd records to find out who did it
353
3542.7.2c (23-09-2010):
355 * Fix uppercase hostname problem in client/server communication
356
357
3582.7.2b (05-09-2010):
359 * Fix compile errors on Solaris 10 (reported by A. Saheba)
360
3612.7.2a (23-08-2010):
362 * rewrote rijndaelKeySched() in a more conservative way to fix
363 compile problem on SLES 11.
364
3652.7.2 (16-08-2010):
366 * sh_utils.c: fixed an endianess issue that prevented cross-verification
367 of email signatures (reported by A. Zangerl)
368 * sh_login_track.c: fix compiler warning (ignored return value
369 of fwrite)
370 * sh_readconf.c: fix comparison of SeverityUserX string
371 (reported by max__)
372 * sh_processcheck.c: sh_prochk_set_maxpid: set retval on success
373 (reported by max__)
374 * fixed some compiler warnings on cygwin
375 * sh_extern.c: As reported by T. Luettgert, gcc 4.4.4 on Fedora 13
376 will throw a warning if execve is called with a NULL argv pointer.
377 Need to provide a dummy argp[].
378
3792.7.1 (07-06-2010):
380 * samhain_kmem.c: fix compile problems
381 * fix problems with config file parser: increase max. line length,
382 support quoting/escaping of filenames (as in 'ls --quoting-style=c')
383 * check for pcre_dfa_exec (not available in old versions
384 of libpcre, reported by Shinoj)
385 * patch to allow server to log client reports to prelude
386 (by J. Ventura)
387
3882.7.0a (09-05-2010):
389 * fix /dev/kmem detection (reported by S. Clormann)
390
3912.7.0 (01-05-2010):
392 * sh_utmp.c, sh_login_track.c: additional login checks
393 * sh_unix.c: use SIGTTIN as alternative for SIGABRT
394 (SIGABRT seems not to work on AIX, reported by Peter)
395 * sh_utmp.c: fix compile error without pthreads (inotify_watch used)
396 * sh_kern.c, kern_head.c: fix some 64bit issues
397 * dnmalloc.c: fix compiler warning (ignored ret value)
398 * Fix LSB init script for kernel module
399 * samhain_kmem kernel module for /proc/kmem added
400
4012.6.4 (22-03-2010):
402 * Don't read proc_root_iops in sh_kern.c (Problem report
403 by H. R.)
404 * Logfile check can check output of shell commands
405 * Use data directory as default for logfile checkpoints
406 * Fix broken checkpoint save/restore for logfiles
407
4082.6.3 (10-03-2010):
409 * Fix bug in mail module, recipients incorrectly flagged
410 as aliases, which breaks immediate mail for 'alert'
411 (reported by Jesse)
412
4132.6.2 (28-01-2010):
414 * Makefile.in: fix problem in deploy system caused
415 by adding build number for debs in 2.5.9 (reported
416 by roman)
417 * add option for per-rule email alias in log monitoring
418 module
419 * sh_readconf.c: make keywords case-independent
420 * sh_mail.c: on error, report full reply of mail server
421 * sh_mail.c: report smtp transcript at debug level
422 * make sure mail aliases are not emailed twice, and
423 recipients cannot be defined after aliasing them
424 * handle named pipes in log monitoring module
425 (open in nonblocking mode, ignore read error if empty)
426 * fix bug in the server function to probe for necessity
427 of configuration reload for client
428
4292.6.1b (23-12-2009):
430 * fix missing include for sh_inotify.h in sh_inotify.c
431 (reported by Ack)
432
4332.6.1a (22-12-2009):
434 * fix typo in code for older inotify versions without
435 inotify_init1(), reported by Forll
436
4372.6.1 (21-12-2009):
438 * add a routine to log monitoring module to guess the proper year
439 for timestamps without year (standard syslog)
440 * add feature to automatically detect and report bursts of
441 similar messages in log monitoring module
442 * add feature to check for missing heartbeat messages in
443 log monitoring module
444 * cache UIDs/GIDs to reduce the number of lookups
445 * use inotify to track login/logout (sh_inotify.c, sh_utmp.c)
446 * support event correlation in log monitoring module
447 * make sure host matching is done in a case insensitive way
448 (reported by Tracy)
449 * fix invalid use of mutex_mlock in src/sh_unix.c, function
450 sh_unix_count_mlock() (reported by Remco Landegge).
451
4522.6.0 (01-11-2009):
453 * don't use statvfs() for process checking on FreeBSD
454 * fix bug with parallel compilation of cutest in Makefile
455 * sh_mem.c: fix deadlock in debug-only code
456 * Evaluate glob patterns for each run of file check
457 * Add compile option to disable compiling with SSP
458 * Run SUID check in seperate thread
459 * By default disable scanning ..namedfork/rsrc (deprecated by Apple)
460
4612.5.10 (12-10-2009):
462 * sh_suidchk.c: handle $HOME/.gvfs mount gracefully
463 * slib.c: fix race condition caused by closing a stream and the fd
464
4652.5.9c (01-10-2009):
466 * move stale file record error message closer to problem zone
467 * sh_port2proc.c: fix flawed logic for interpreting /proc/net/udp,tcp
468
4692.5.9b (22-09-2009):
470 * remove stale file record when creating handle, and raise diagnostic
471 error to find origin of stale record
472 * sh_port2proc.c: check /proc/net/upd6 for IPv6-only UDP sockets
473
4742.5.9a (17-09-2009):
475 * fixed a race condition in closing of file handles
476
4772.5.9 (11-09-2009):
478 * added code to generate directory for pid file, since it
479 would get cleaned if /var/run is a tmpfs mount (problem
480 reported by M. Athanasiou)
481 * fixed a bug that prevented reporting of user/executable path
482 for open UDP ports (issue reported by N. Rath)
483 * added more debugging code
484
4852.5.8a (18-08-2009):
486 * fixed a bug in sh_files.c that would prevent samhain from
487 running on MacOS X (reported by David)
488
4892.5.8 (06-08-2009):
490 * fixed a bug in the MX resolver routine which causes it to fail
491 sometimes (issue reported by N. Rath).
492 * fixed deadlock with mutex_listall in sh_nmail_test_recipients() if
493 error occurs within sh_nmail_flush (problem reported by N. Rath)
494
4952.5.7 (21-07-2009):
496 * sh_userfiles.c: set userUids = NULL at reconfiguration (issue
497 reported by U. Melzer)
498 * if available, use %z to print timezone as hour offset from GMT
499 in email date headers (problem reported by NP, solution suggested
500 by TimB).
501 * eliminate C99-style comments (problem reported by
502 venkat)
503 * fix bad variable name for AC_CACHE_CHECK
504 * fix potential deadlock when external programm is called
505 (problem reported by A. Dunkel)
506
5072.5.6 (09-06-2009):
508 * recognize fdesc filesystem on MacOS X for suid check (Problem
509 reported by David)
510
5112.5.5 (01-05-2009):
512 * fix some warnings from gcc 4.4 (strict aliasing)
513 * fix minor memory leak in process check
514 * t-test1.c: change function names because of clashes with an
515 AIX system header file
516 * fix warnings with -fstack-check (too large stack frames)
517 * fix for incorrect handling of hostnames in database insertion
518 (reported by byron)
519
5202.5.4 (04-03-2009):
521 * fix for incorrect input check in SRP implementation (discovered
522 by Thomas Ptacek)
523 * option KernelCheckPCI to switch off check of PCI expansion ROMs
524
5252.5.3 (25-02-2009):
526 * disable dnmalloc on MacOS X, doesn't work properly
527 * stat -> lstat in sh_unix_file_exists (OS X nameforks, report
528 by David)
529 * Fix problem in standalone trustfile, does not work correctly on
530 group-writeable files (reported by David).
531 * Option SetThrottle to throttle throughput for db download
532 * Option SetConnectionTimeout to configure the client connection
533 timeout configurable
534 * Provide getrpcbynumber, getservbyname implementations
535 to avoid dependencies with static linkage
536 * Fix missing sh.host.(system|release|machine) on FreeBSD,
537 reported by D.Lowry
538 * New option SetMailPort to allow setting of SMTP port (patch
539 by lucas sizzo org)
540 * allow POSIX regexes for filters
541 * consolidate filtering code from sh_extern.c, sh_(n)mail.c
542 * rewrite mail subsystem to allow individual filtering
543 for recipients
544 * allow shell expansion for values of config file options
545 * allow list as value for option PortCheckInterface
546 * fix bug in trustfile.c (with slapping on "/../" for symlinks)
547 * lock baseline database upon writing
548
5492.5.2b (29-01-2009):
550 * turn warnings into errors in the compile test suite
551 * fix missing define in sh_portcheck.c to eliminate compiler warning
552 (reported by joerg)
553
5542.5.2a (26-01-2009):
555 * fix problem building deb package (bit rot; reported by joerg)
556
5572.5.2 (22-01-2009):
558 * samhain.c: report module failure with positive offset
559 * sh_database.c: parse numerical fields into ulong
560 * fix regression test script for postgresql
561 * fix regression test script for SELinux/ACL test
562 * fix reporting of user for open ports to prelude
563 * report process pid for open ports
564 * replace _exit() by raise(SIGKILL) b/o pthread problem
565 * new option LooseDirCheck ([false]/true), request by
566 Alexander
567 * improved help output of samhain_stealth (as suggested
568 by Michael Athanasiou)
569 * new option ProcessCheckIsOpenVZ ([false]/true)
570
5712.5.1 (07-12-2008):
572 * workaround for freebsd7 amd64 lossage (compiler toolchain,
573 no mmap to 32bit address space)
574 * samhain-install.sh: check for presence of stealth_template.ps
575 before trying to create it
576 * use -Wno-empty-body if supported to suppress warnings about
577 glibc pthread_cleanup_pop implementation
578 * fix text relocations for i386 in src/sh_tiger1.s
579 * implement server->client SCAN command to initiate file check
580 * implement @if / @else conditionals with more tests in config file
581 * new option SetDropCache to drop checksummed files from cache
582 * report process/user for open ports on FreeBSD (code
583 lifted from FreeBSD sockstat.c)
584 * fix for config reload issue with stealth mode (reported by
585 siim)
586 * add -fstack-protector flags to LDFLAGS
587 * cygwin fix: don't use dnmalloc, doesn't work with pthreads
588 * cygwin fix: make trust check in samhain-install.sh return zero
589 * improved diagnostics for file read errors
590 * fixed script permissions (754 -> 755), reported by Christoph
591 * constness patch by Joe MacDonald
592 * GnuPG key ID patch by Jim Dutton
593 * sh_kern.c: more error checking for reads from kernel
594
5952.5.0 (01-11-2008):
596 * dnmalloc.c: fix inconsistent chunksize on 64bit systems
597 * fix improved error reporting for failed fstat in checksumming
598 * report process/user for open ports (Linux only currently)
599 * fix deadlock on exit in sh_hash_init()
600 * fix --enable-mounts-check for FreeBSD 7.0 (no MNT_NODEV anymore)
601 * log monitoring support
602 * fixed constness in trustfile interface
603 * remove libprelude 0.8 support (obsolete)
604 * sh_forward.c: increase TIME_OUT_DEF to 900 secs
605 * dnmalloc.c: initialize rc in dnmalloc_fork_child(),
606 reported by B. Podlipnik
607
6082.4.6a (09-10-2008):
609 * fix compile problem on Fedora 9 (reported by pierpaolo),
610 'struct ucred' in sh_socket.c requires _GNU_SOURCE
611
6122.4.6 (27-08-2008):
613 * fix compile failure on win2k/cygwin (sh_unix_mlock prototype),
614 reported by jhamilton
615 * fix potential deadlock with dnmalloc upon fork()
616 * fix non-portable use of 'hostname -f' in regression test suite
617 (reported by Borut Podlipnik)
618
6192.4.5a (18-08-2008):
620 * fix compile problem in dnmalloc.c (remove prototypes for
621 memset/memcpy), problem reported by Juergen Daubert
622
6232.4.5 (07-08-2008):
624 * testscripts: 'chmod -R' -> 'chmod -f -R', since Solaris 10
625 bails out on a chmod on a dangling link
626 * fix bug in check_samhain.pl nagios script (J.-S. Eon)
627 * use the UNO static checker
628 * compile as position independent executable (PIE)
629 * handle EINPROGRESS error (Windows/cygwin issue)
630 * make sure every function uses less than one page of stack
631 (proactive security against gap jumping, Gael Delalleau)
632 * use dnmalloc instead of system malloc
633 (proactive security against heap buffer overflows)
634 * fix dnmalloc bugs and portability problems
635 * check for compressBound, since older zlibs don't have it
636
6372.4.4 (30-04-2008):
638 * sh_database.c: fix maximum size of sql query string, maximum
639 size of strings in struct dbins_
640 * sh_hash.c: fix maximum size of message string
641 * fix typo in the base64 decoder
642 * fix 'make cutest' for parallel compiling
643 * fix compile warnings with -Wstrict-prototypes
644 * sh_static.c: override getgrgid, getpwuid for libacl
645 * fix more warnings about variables clobbered by 'longjmp'
646 or 'vfork' (due to library internal handling of mutexes)
647 * fix configure warning about unused datarootdir
648 * configure.ac: warn, but accept nonexistent tmp dir
649 (Problem reported by Brian)
650 * sh_unix.c: undef P_ALL, P_PID, P_PGID before including
651 sys/wait.h (compile problem reported by Reputation)
652 * syslog function tested ok with Syslog Fuzzer v0.1
653 by Jaime Blasco (c) 2008
654 * slib.c: call fflush when writing trace to file
655 * sh_readconf.c: don't set OnlyStderr to false if gpg (problem
656 reported by Irene Reed)
657 * fix unconditional removal of pid file in atexit handler (bug
658 reported by Brian)
659 * fix invalid free() in sh_unix_checksum_size()
660 * sh_processcheck.c: workaround for stupid OpenBSD bug (returns
661 ENODEV instead of EAGAIN, because fgetc does
662 fcntl(0,F_SETFL,O_NONBLOCK) [ENODEV] internally), problem
663 reported by Roman R.
664 * fix buf that cause incomplete reporting of modified symlink if
665 symlink has changed and both old and new paths are >48 bytes
666 * fix bug that prevented mount check from running in one-shot mode
667 * enable mount check for openbsd
668 * fix processcheck default options and test script for openbsd
669 * option --list-file to list content of file (if saved)
670 * sh_tools.c: use strcasecmp in reverse lookup since DNS is case
671 insensitive (bug reported by Phil)
672 * fill content if MODI_TXT, zlib compress, base64 encode and add
673 as link_path in sh_unix.c; add to report in sh_hash.c
674 * testsuite: add test for gpg fingerprint option
675 * sh_extern.c: add 'CloseCommand' for syntactic sugar,
676 add in testsuite
677
6782.4.3a (12-02-2008):
679 * fix compile error caused by open() with O_CREAT and no third argument
680 (reported by J.-S. Eon)
681
6822.4.3 (31-01-2008):
683 * sh_kern.c: don't require asm/segment.h for kernel check module
684 * use global var with pid of initial thread instead of getpid(),
685 since LinuxThreads returns different value in each thread (problem
686 reported by Steffen Mueller)
687 * sh_kern.c: no inode check for pci rom (creates spurious messages)
688 * slib.c: eliminate prototype for vsnprintf (compile problem reported
689 by eddy_cs)
690 * Makefile.in: fix missing dependency on 'encode' for $(OBJECTS)
691 (reported by Matthias Ehrmann)
692
6932.4.2 (17-01-2008):
694 * fix broken option --with-checksum (reported by halosfan),
695 regression test added
696 * change HP-UX default optimization to +O2 since +O3 breaks
697 cutest unit testing framework
698 * put result vector of rng in skey struct
699 * fix more compiler warnings, and a potential (compiler-dependent)
700 NULL dereference in the unix entropy collector
701 * fix some compiler warnings
702 * use -D_FORTIFY_SOURCE=1 -fstack-protector-all instead
703 of -fstack-protector
704 * always add PTHREAD_CFLAGS to LDFLAGS
705 * sh_tiger0.c: checksum functions return length of file hashed,
706 needed to fix GrowingLogfile bug (researched by
707 siim at p6drad dash teel dot net)
708 * sh_static.c: fix more 'label at end of compound statement'
709 (SH_MUTEX_UNLOCK closing brace; reported anonymously)
710 * make sh_hash.c thread-safe
711 * remove plenty of tiny allocations
712 * improve sh_mem_dump
713 * modify port check to run as thread
714 * new option PortCheckSkip to skip ports
715 * fix unsetting of sh_thread_pause_flag (was too early)
716
7172.4.1a (28-11-2007):
718 * fix overwrite of ErrFlags (functionality bug)
719
7202.4.1 (26-11-2007):
721 * security fix: regression in the seeding routine for the PRNG
722 (detected by C. Mueller)
723 * regression test added for PRNG seeding routine
724 * fix problem with PCI ROM check (spurious messages about modified
725 timestamps, reported by S. Clormann)
726
7272.4.0a (08-11-2007):
728 * fix compile failure with --enable-static (reported by S. Clormann)
729 * fix potential deadlock if SIGHUP is received while suspended
730
7312.4.0 (01-11-2007):
732 * eliminate alarm() for I/O timeout (replaced by select)
733 * use getgrgid_r, getpwnam_r, getpwuid_r, gmtime_r, localtime_r,
734 rand_r, strtok_r if available
735 * protect readdir(), getpwent(), gethostname() with mutexes
736 (readdir_r considered harmful)
737 * make checksum/hash, entropy, rng functions reentrant
738 * use thread-specific conversion buffer for globber()
739 * fixed compile problems and problems with test suite
740 * modify login watch to run as thread
741 * modify process check to run as thread
742
7432.3.8 (03-10-2007):
744 * new option PortCheckIgnore = interface:portlist
745
7462.3.7 (13-09-2007):
747 * Makefile.in: fix 'make deb' target, wrong name of config file
748 written to debian/conffiles (reported by marc)
749 * configure.ac: fix incorrect order of with-prelude, enable-static
750 (libprelude test was always without -static)
751
7522.3.6 (06-09-2007):
753 * added yuleadmin.pl script contributed by Riccardo Murri
754 * fix compile error with -f-stack-protector on some systems (reported
755 by marc); we now check for libssp
756 * fix local DoS attack on BSD systems lacking getpeereid() (reported
757 by Rob Holland).
758 * fix yulectl password reading from $HOME/.yulectl_cred, erroneously
759 rejected passwords with exactly 14 chars (reported by Jerry Brown)
760 * introduce 'fflags' flag for suid files to detect new files already
761 found in regular file check (problem reported by J. Crutchfield);
762 also add regression test to ascertain that files in baseline
763 database are not quarantined erroneously
764 * sh_hash.c: replace check for prefix 'K' with check for not prefix'/'
765 to allow for arbitrary module-specific store/lookup in db
766 * replace 'visited', 'reported', 'allignore' with generic 'fflags' field
767 * sh_cat.c: reduce priority of MSG_TCP_RESET to avoid spamming if
768 port checking is used on same host as server (reported by kadafax)
769 * Install.sh: don't use --separate-output with non-checklist
770 widgets (problem discovered by D. Denton)
771 * sh_gpg.c, sh_userfiles.c: use sh_getpwnam et al. wrappers
772
7732.3.5 (20-06-2007):
774 * sh_portcheck.c: try to tear down connections more gracefully
775 (request by S. Petersen)
776 * fix incorrect handling of files with zero size in GrowingLogFiles
777 (problem reported by S. Petersen)
778 * fix incorrect encoding of null checksums in stealth mode
779 * sh_hash.c: fix repeated printing of acl/attributes in database dump
780 * sh_unix.c: fix option useaclcheck ignored if both useaclcheck and
781 useselinuxcheck are supported
782
7832.3.4 (01-05-2007):
784 * sh_processcheck.c: fix missing init of sh_prochk_res array before
785 check (leads to degrading functionality over time and 'fake pid'
786 warnings; reported by D. Ossenbrueggen and
787 soren dot petersen at musiker dot nu)
788 * sh_processcheck.c: fix memory leak
789 * sh_kern.c: for 2.6.21+ don't check proc_root_lookup (not possible
790 anymore? proc_root_inode.lookup != proc_root_lookup)
791 * sh_extern.c: flush streams before forking (problem if [Prelink]
792 used together with prelude logging, reported by M. deJong)
793 * fixed compilation of kern_head (regression cause by cross-compiling
794 fix; problem reported by S. Clormann)
795 * more typos fixed (reported by John Horne)
796
7972.3.3 (27-03-2007):
798 * fixed typos in configure.ac and manual (reported by John Horne)
799 * don't use mysql_options on x86_64, since libmysql is broken
800 * fixed cross-compiling (patch by Joe MacDonald)
801 * refactor sh_kern.c, sh_suidchk.c
802 * fix bug with leading slashes in linked path of symlinks within
803 the root directory
804 * sh_kern.c: check PCI ROM (Linux), refactor code
805 * move file descriptor closing more towards program startup
806 * kernel check: support OpenBSD 4.0 (wishlist)
807 * fix samhain_hide module (in-)compatibility with recent kernels
808 (reported by Jonny Halfmoon)
809
8102.3.2 (29-01-2007):
811 * fix regression in full stealth mode (incorrect comparison of
812 bytes read vs. maximum capacity), reported by B. Fleming
813
8142.3.1a (21-01-2007):
815 * fix incorrect use of sh_gpg_fill_startup if option --with-fp is used
816 (reported by zeroXten)
817
8182.3.1 (21-01-2007):
819 * fix bug that may cause accidental closure of yule TCP socket
820 (problem reported by B. Masuda)
821 * fix sh_kern.c for kernel 2.6.19 (reported by S. Clormann)
822 * don't use sstrip in 'make deb', since dh_shlibdeps uses objdump
823 (reported by B. Masuda)
824 * rm report.pl from rules.deb.in (reported by B. Masuda)
825 * samhainctl(): longer timeout (bad status reporting at startup,
826 reported by Phil and by Dan Track)
827 * sh_portcheck.c: make connect errors more descriptive
828 * sh_portcheck.c: fix ignored setting of PortCheckActive
829 * sh_processcheck.c: add statvfs, and wrap for EINTR
830 * sh_portcheck.c: add wrappers for EINTR
831 * report user and executable for hidden processes
832 * fix update failure if reportonlyonce = false (reported
833 by D. Strine)
834 * fix compile error in sh_portcheck.c (problem on cygwin
835 reported by J. D. Fiori)
836 * check filenames ending in space (also for utf8 spaces)
837 * check and escape csv formatted db listing
838 * cache results of sl_trustfile_euid()
839 * trustfile: use 4096 for MAXFILENAME, switch to strncpy
840 * CL option -v|--version for info on version and compiled-in options
841
8422.3.0a (01-11-2006):
843 * fix compile failure with portcheck + stealth (reported by lucas)
844
8452.3.0 (01-11-2006):
846 * fix concurrency for inserts in oracle db
847 * add acl_(new|old) to database schema
848 * check for selix attributes and/or posix acl
849 * new option UseSelinuxCheck (bool)
850 * new option UseAclCheck (bool)
851 * regression tests for above
852 * add module to check for open ports
853 * add module to check processes (hidden/fake/missing)
854 * use const char* for argument of module configuration callbacks
855
8562.2.6 (31-10-2006):
857 * fix missing support for MacOX X init script (reported
858 by Daniel Kowalewski)
859 * fix error about non-readable file with no checksum required
860 * fix server warning about 'no server name known'
861 * fix 'make deb' makefile target
862 * fix default export severity for server
863
8642.2.5 (05-10-2006):
865 * fix broken Install.sh, reported by Alexander Kraemer
866 * workaround for glob(3) sillyness on MacOS X (reported by David)
867 * fix for broken resorce fork check (reported by David)
868 * fix for broken compilation on cygwin (reported by Elias)
869
8702.2.4 (03-09-2006):
871 * add regression test for the GrowingLogFiles issue to test suite
872 * fixed sh_unix.c: bug in database init if GrowingLogFiles used
873 with signed database (reported by Timothy Stotts)
874 * bug in manual fixed (incorrect documentation of --enable-user,
875 noticed by M. Brown)
876 * rc.subr compatible init script for FreeBSD/NetBSD
877 * improve routine to find rpm after build
878 * add netbsd rc file from Brian Seklecki (taken from pkgsrc-wip)
879 * fix error in manual (location of lock file)
880 * fix bug with SuidExclude (files in directory were still checked)
881
8822.2.3 (31-07-2006):
883 * fix samhainadmin.pl: check for gpg-agent running if use-agent is set
884 (ticket #28 by anonymous)
885 * fix stealth mode (regression in parser), problem reported by
886 Joschi Kuphal
887 * fix minor typo in sh_database.c (compile problem reported by
888 Joschi Kuphal)
889
8902.2.2 (17-07-2006)
891 * minor fixes for regression test scripts
892 * minor updates to the manual (suggested by Brian A. Seklecki)
893 * fix sh_kern.c, kern_head.c: kernel rootkit detection for 2.6.17+
894 (problem reported by Leonhard Maylein)
895 * fix samhain_hide.c for 2.6.17+: use module_param() if MODULE_PARM
896 is not defined
897
8982.2.1c (11-07-2006)
899 * fix sh_extern.c: sh_ext_add_default() cast to (void) was too early
900 (Solaris 8 build failure reported by Jesse)
901 * fix sh_unix.c: wrong prototype for sh_unix_mlock()
902 if HAVE_BROKEN_MLOCK (AIX 5.2 build failure reported by
903 Jonathan Kaufman)
904
9052.2.1b (20-06-2006):
906 * fix compile error on SuSE 10.1 (reported by Leonhard Maylein)
907
9082.2.1a (15-06-2006):
909 * fix compile error on i686/MacOS X (reported by Andreas Neth)
910
9112.2.1 (13-06-2006):
912 * fix gcc 4 warnings and build failure on x86_64 (debian bug #370808)
913 * fix compiling with Oracle (noticed by Colapinto Giovanni)
914 * fix configure.ac for most recent autoconf version
915 (debian bug #369503)
916 * fix a regression that would make impossible local updates w/clients
917 * fix a few missing '\n' in sh_getopt.c
918 * sh_kern.c: fall back on mmap() if read() fails on /dev/kmem
919 * fix Solaris package creation
920 * recognize Solaris doors and event ports
921 * fix the idmef_inode_t patch: provide required info to avoid stat()
922 * fix bug on database update: fill in dev and rdev fields
923 * fix get_file_infos() in sh_prelude.c: avoid premature return
924 * GCC_STACK_PROTECT_CC: AC_TRY_COMPILE -> AC_TRY_LINK
925 * deploy.sh: allow to set a group for hosts upon installation
926 * patch by Yoann: fix an issue when setting the idmef_inode_t object
927 * fix memory leaks in error paths in sh_prelude.c
928 * fix concurrent inserts with postgres in sh_database.c
929 * code cleanup
930 * fix manual version in spec file, first noticed by Imre Gergely
931
9322.2.0 (01-05-2006):
933 * patch by Jim Simmons for samhainadmin.pl.in
934 * fix testsuite portability problems
935 * fix md5 endianess problem detected on HP-UX 11i / PA-RISC 8700
936 * fix potential NULL dereference in sh_utmp_endutent()
937 * patch by Neil Gorsuch for suidchk.c (do not scan lustre, afs, mmfs)
938 * fix sh_ext_popen (OpenBSD needs non-null argv[0] in execve)
939 * fix make_tests.sh portability (echo '"\n"' does not work on OpenBSD)
940 * fix bug in sh_utils_obscurename (check isascii)
941 * scan h_aliases for FQDN if h_name is not
942 * add copyright/license info to test scripts
943 * add copyright/license info to deployment system scripts
944 * support server-to-server relay
945 * new CL option --server-port
946 * minor improvements in manual
947 * patch by Yoann Vandoorselaere for sh_prelude.c
948 * allow --longopt arg as well as --longopt=arg
949 * verify checksum of growing log files (up to previous size)
950 * rewrite of the test suite
951 * added a bit of unit testing
952 * minor optimizations in various places
953 * optimized implementation of tiger checksum algorithm
954 * read in 64k blocks (faster than 4k)
955 * sh_unix.c, sh_hash.c: support file flags on *BSD, update Linux
956 file attribute code
957 * kern_head: fix compilation of kernel check module on OpenBSD
958 * updated samhainrc.linux, samhainrc.freebsd
959 * sh_unix.c: fix setrlimit (RLIMIT_NOFILE, ..)
960 * sh_files.c: fix missing use of flag_err_info
961 * sh_tiger0.c: remove repetitive use of mlock
962 * slib.c: remove fcntl's from sl_read_timeout (caller sets O_NONBLOCK),
963 add function sl_read_timeout_prep
964
9652.1.3 (13-03-2006):
966 * fix compile problem in slib.c (reported by Lawrence Bowie)
967 * fix bug with combination of one-shot update mode and file check
968 schedule (reportedby Dan Track)
969 * improved the windows howto according to suggestions by
970 Jorge Morgado
971 * fix samhain_hide kernel module for new linux kernel versions
972 * fix minor problem with dead client detection (problem reported
973 by Michal Kustosik)
974
9752.1.2 (10-01-2006):
976 * fix startup error with combination of gpg+prelude
977
9782.1.1a (22-12-2005):
979 * fixed a stupid bug in sh_files.c (break if file = dir)
980
9812.1.1 (21-12-2005):
982 * sh_calls.c: protect sh_calls_set_bind_addr against overriding
983 * comINSTALL, updateDB: use locking
984 * samhainadmin.pl: use locking
985 * fix typos in samhainrc.solaris (noticed by Robby Cauwerts)
986 * improve zAVLSearch (remove redundant strcmp)
987 * use AVL tree in sh_files.c instead of linked list (better scaling)
988 * fix bug with suidcheck (no update/check in one-shot mode with
989 schedule instead of check interval; noticed by R. Rati)
990 * fix for problem with '-t update -i' if daemon mode (problem report
991 by Peter van der Does)
992 * fix for bug in sh_util_ask_update (two returns were required ...)
993
9942.1.0 (31-10-2005):
995 * minor fix for cross-compiling with --with-kcheck
996 * sh_forward.c: handle bad fds in the select() fd sets
997 (reported by hmy)
998 * sh_extern.c: fix debugging code
999 * slib.c, sh_calls.c, sh_calls.h: improve handling of O_NOATIME
1000 (reported by Gabor Kiss)
1001 * makefile.in: fix for solaris package creation
1002 * sh_mail.c, sh_readconf.c: mail filtering options
1003 * sh_database.c: Oracle reconnect on connection failure
1004 (bug report by Alexander A. Sobyanin)
1005 * sh_unix.c: don't purge MYSQL_UNIX_PORT environment variable
1006 (problem reported by Peter)
1007 * sh_calls.c: fix for a HP-UX accept() problem caused by the gcc4 fix
1008 * fixes for gcc 4.0.2 compiler warnings
1009 * ability to use daemon mode together with update
1010 (wishlist Yoan Vandoorselaere)
1011 * fixes for debugging
1012
10132.0.10a (22-08-2005):
1014 * fix for overlapping directory check specification (reported by Bub)
1015
10162.0.10 (21-08-2005):
1017 * fix for segfault (free() on a constant string) with libprelude
1018 (problem reported by Grae Noble)
1019 * upgrade FreeBSD kernel check to 5.4, minor fixes
1020 * useful script for users of Linux kernel check
1021 (contributed by marc heisterkamp)
1022 * documentation improvements (suggested by Brian Seklecki and Robby)
1023
10242.0.9 (25-08-2005):
1025 * samhain_erase.c: add #define for NULL
1026 * sh_suidchk.c: fix incorrect use of escaped filename
1027 * sh_prelude.[ch], sh_readconf.c: configurable mapping from
1028 samhain severity to prelude severity
1029 * sh_unix.h: second arg of gettimeofday should be NULL
1030 * sh_files.c: fix checking of directory special file (use specified
1031 policy, not that of parent dir, problem found by Brian A. Seklecki)
1032 * sh_entropy.c: longer timeout for entropy collector
1033 * sh_socket.c, sh_forward.c: allow probing of clients for
1034 necessity of configuration reload
1035 * yulectl: minor fixes, option -v (verbose), new command PROBE
1036 * fix 'File not found' messages for files flagged with IgnoreMissing
1037 * sh_database.c: strip newline from oracle error messages
1038 * sh_files.c: fix rsrc fork issue with MacOS X Tiger
1039 (reported by A. Koren)
1040 * never compute checksum if not checked (problem report by D.Hughes)
1041 * sh_prelude.c: cleanup and bugfix by Yoann
1042 * sh_hash.c: for prelude, make sure mode is supplied with user/group
1043 and vice versa
1044 * sh_prelude.c: provide proper FileAccess objects (bug
1045 report by Mihai Ilinca)
1046
10472.0.8 (03-07-2005):
1048 * configure.ac: use $LIBPRELUDE_PTHREAD_CFLAGS rather than
1049 $LIBPRELUDE_CFLAGS (bugfix by Yoann)
1050 * samhain.spec.in: remove support for chkconfig (it's too buggy).
1051 Strangely, if invoked as install_initd it behaves sanely ...
1052 * src/sh_err_log.c: fix key input (this time for real)
1053 * fix --with-altlogserver (bug from 2.0.7b)
1054 * remove server socket in start/stop script
1055
10562.0.7e (not released):
1057 * Makefile.in: introduce a total of 6 sec delay for 'make' utilities
1058 that use 1 sec resolution, and consider target out-of-date if
1059 timestamp(target) = timestamp(dependency) ...
1060 * src/sh_err_log.c: fix key input
1061 * another fix for yulectl (use pwent->pw_dir)
1062 * dsys/comINSTALL, dsys/comUNINSTALL, dsys/comBUILD: fix PATH
1063
10642.0.7d (not released):
1065 * one more fix for the spec file (stupid rpm finds tags in comments!!!)
1066
10672.0.7c (not released):
1068 * test/testrun_1b.sh, test/testrun_2b.sh: use $GPG_PATH
1069 * dsys/comINSTALL, dsys/funcDB, dsys/funcINSTALL: some bugfixes
1070 * samhain-install.sh.in: fix test -z $verbose
1071 * sh_hash.c: speedup database reading
1072 * Makefile.in: fix the problem that BSD make would make too much
1073 * deploy: yulerc.clients -> yulerc.install.db, provide
1074 $defdatabase for backward compatibility
1075 * deploy: allow for comma in client_install_date
1076
10772.0.7b (not released):
1078 * hp_ux.psf.in: fix psf file
1079 * dsys/comINSTALL: fix $yule_date -> $yule_data
1080 * Makefile.in: fix 'make depot'
1081 * sh_tools.c, sh_unix.c: fix detection of open file limit
1082 * sh_readconf.c: reset read_mode after reading conf file
1083 * yulectl.c: better error messages, use homedir from getpwuid(geteuid)
1084 * init/samhain.startLSB.in: fix misleading message in lsb init script
1085 * sh_forward.c: better display for nonce u in debug mode
1086 * sh_tiger*.c: fix checksum for HP-UX 64bit
1087 * samhain.c: don't fetch database twice
1088 * configure.ac: accept nodename for --with-logserver=...
1089 * samhain_setpwd.c: return proper exit status for samhain_setpwd
1090 * respond to SIGTERM on initializing
1091 * fix problems with samhainadmin.pl
1092 * sh_utils.c: fix bug with AddOKChars (found by Karol)
1093
10942.0.7a (not released):
1095 * remove 'df' from entropy gatherer (NFS may hang)
1096 * modify va_copy check (doesn't work with HP-UX PA64 compiler)
1097 * fix compile warnings in sh_database.c
1098 * samhain-install.sh.in: check for /usr/bin/false in /etc/shells
1099 * fix install-boot on HP-UX
1100 * aclocal.m4: fix configure CL parsing to recognize VAR=VALUE
1101
11022.0.7 (11-06-2005):
1103 * yet another fix for the spec file (use internal dependency generator)
1104 * sh_error.c, sh_prelude.c: init libprelude after open fds are closed
1105 * error message if queue is full
1106 * fix two compiler warnings on HP-UX
1107 * fix sh_mail.c for Interix (no resolver routines)
1108 * fix sh_unix_initgroups2() if no initgroups() function (bug reported
1109 by Geries Handal)
1110 * remove references to 'struct timezone' (Interix; problem
1111 reported by Geries Handal)
1112 * init/stop for prelude on SIGHUP
1113 * sh_cat.h: fix a stupid bug with messages classes
1114 * manual: new section on nagios (with help from kiarna),
1115 more on prelude
1116 * sh_prelude.c: cleanup and improvements (Yoann Vandorselaere)
1117 * default prelude profile name now is 'samhain' (lowercase)
1118 * sh_readconf.c: new option PreludeProfile (by Yoann Vandorselaere)
1119 * remove obsolete check for linux/module.h, linux/unistd.h
1120 * remove dependency on virtual/glibc in gentoo ebuild
1121 (problem reported by Willis Sarka)
1122
11232.0.6 (01-03-2005):
1124 * sh_prelude.c, configure.ac, aclocal.m4: support for
1125 libprelude 0.9 (Yoann Vandoorselaere)
1126 * sh_html.c: fix bug with entry.html template (reported by
1127 Stephane Sanchez)
1128 * Install.sh: fix mandir option (reported by Rodney Smith)
1129 * Fixed Linux/64bit bug in definition of EUIDSLOT
1130 * New targets 'make depot', 'make depot-light' (HP-UX, untested)
1131 * Use sstrip for RPMs and DEBs (automatic stripping disabled)
1132 * Fix aclocal.m4 for autoconf 2.59 (missing $ac_cr_alnum et al.,
1133 problem noticed by Yoann Vandoorselaere)
1134 * Modify samhain.spec.in to disable automatic stripping upon install
1135 * Fix deploy.sh + '--enable-gpg', and fix 'make rpm' and 'make deb'
1136 for '--with-khide' (problems reported by Mark)
1137 * Fix compile error in sh_tools.c on HP-UX 10.20
1138 (problem reported by Dennis Boylan)
1139 * Runtime configuration of server listening port (wishlist)
1140 * Runtime configuration of server listening interface (wishlist)
1141 * Ignore SIGTTIN (consistency)
1142 * Use SIGTTOU to force file check (wishlist)
1143
11442.0.5b (01-04-2005):
1145 * Fix build problem b/o timestamp on stamp file
1146
11472.0.5a (16-03-2005):
1148 * Fix problem with 'make rpm' (reported by Dirk Brümmer)
1149
11502.0.5 (02-03-2005):
1151 * Fix bug with partial reads from clients in server
1152 (bug report by Brian)
1153 * Support gpg checksum bootstrap with yule
1154 * Support mount option check on HP-UX
1155 * For MAIL FROM, use 'example.com' as domain part if
1156 hostname is numeric (problem reported by Eric Raymond)
1157 * The HOWTO-write-modules has been updated.
1158 * Convenience functions to insert data in database have been
1159 added.
1160 * Use int0x03 only on i386 in sh_derr() (portability problem
1161 reported by John Mandeville)
1162
11632.0.4 (09-02-2005):
1164 * Fixed broken 'make deb' (problem report by olfi)
1165 * Fixed minor bug in test scripts (detection of gmake vs. make)
1166 * Fixed Tru64/OSF compile warnings (reported by B. Terp)
1167 * Normalize list parsing to allow comma, space, and tab as separators
1168 * Some more descriptive error messages in kern_head.c
1169 * Absolute path to utilities in init/samhain.startLinux.in
1170 * Fixed is_root variable in deploy.sh
1171 * Fixed 'deploy.sh info'
1172 * Fixed 'deploy.sh install' client startup
1173 * Fixed 'make tbz': don't remove ebuild scripts in 'make dist'
1174 (issue reported by W. Sarky)
1175
11762.0.3 (14-12-2004):
1177 * Fix CPPFLAGS with mysql/postgresql (repoted by P. Smith)
1178 * Fix missing sys/time.h include in slib.c (reported by Jonas)
1179 * Workaround for file closing problem with Prelude+GPG
1180 * Fixed memory leak with Prelude.
1181 * Fixed bug in samhain_stealth (PGP signature not correctly
1182 retrieved from hidden configuration; report and patch by V. Tuska)
1183 * Added Perl script to concatenate file signature database files
1184 * Fix compile error with combination of --enable-nocl and
1185 --enable-stealth (reported by Zdenek Polach)
1186 * Fix bug in dsys/initscript with --enable-nocl
1187 * Fix declaration of sh_kern_timer()
1188 * Fix missing Mounts+Userfiles options in appendix of manual
1189 * Updated the README (bug report by H. Franzke)
1190 * Fix some compiler warnings
1191
11922.0.2a (09-11-2004):
1193 * Fixed OoM condition when client rc file not found (reported by Eilko)
1194
11952.0.2 (08-11-2004):
1196 * Fixed buffer overflow in sh_hash_compdata() (only in 'update' code)
1197 * Fixed uninitialized variable in sh_mail_msg() (problem reported
1198 by Michael Milvich)
1199 * Fixed potential NULL pointer dereference in sh_hash_compdata()
1200
12012.0.1 (01-11-2004):
1202 * Fixed compilation bug reported by jue (--with-kcheck broken).
1203 * Fixed start option (bug reported by sanek). Behaviour wrt.
1204 environment variables depended on the way the daemon was started.
1205
12062.0.0 (31-10-2004):
1207 * The deployment system has been rewritten from scratch in
1208 a cleaner and more modular and extensible way. Deployment
1209 of native packages is supported now.
1210 * The build system has been revised. Building outside the source
1211 directory is supported now.
1212 * Support for checksumming of prelinked executables / libraries
1213 has been added.
1214 * The configure script now checks for the SSP/ProPolice patch in GCC,
1215 and enables it if present.
1216 * The install-boot option in samhain-install.sh has been fixed
1217 (use absolute paths for sbin utilities).
1218 * A nagios plugin (scripts/check_samhain.pl) has been added.
1219 * The LSB (Linux Standard Base) init script has been fixed (the output
1220 was incorrect).
1221 * Fetching of built binary packages has been
1222 fixed ($(PACKAGE)->@install_name@).
1223 * For files in proc, the timeout has been reduced, and no error
1224 messages are issued upon timeout.
1225 * A function has been added to print out full details for missing
1226 files if encountered while in sh_files().
1227 * The reporting for SuidCheck has been fixed (incorrect policy
1228 noticed by JiM).
1229 * On Linux, SuidCheck does not report on files marked as candidates
1230 for mandatory locking (group-id bit set, group-execute bit cleared).
1231 * Fix for oracle init script (by Matt Warner)
1232
12331.8.12b (11-10-2004):
1234 * fix bug in MSG_MSTAMP (%ld -> %lu)
1235 * fix bugs in sh_suidchk.c (%ld -> %lu), check fopen for NULL,
1236 mkdir mode for quarantine directory
1237 * fix the fix for modlist_lock search in System.map
1238
12391.8.12a (01-10-2004):
1240 * fix bug in samhain-install.sh.in (only occurs on Solaris), reported
1241 by J. Roland
1242
12431.8.12 (27-09-2004):
1244 * fix compile bug with --enable-static + --with-database=postgresql
1245 * fix search for modlist_lock in System.map
1246 * password auth for yule command socket (request by D. Kocic)
1247 * more info about pending/sent commands to clients
1248
12491.8.11 (30-08-2004):
1250 * fix static linking on Linux by use of replacement routines from
1251 uClib - however, this means, there is no NIS support anymore
1252 * new option AddOKChars=... to modify the set of characters for
1253 filenames considered 'obscure'
1254 * new option HardlinkOffset=... to specify an offset from the canonical
1255 hardlink count for a directory
1256 * fix some warning with HP 11.23 native compiler
1257 * fix minor OpenBSD portability problems (EIDRM, compiler warning)
1258 * samhainrc.5, samhain.8: updated the man pages
1259 * sh_unix.c, sh_files.c: ignore 'no user/group' and 'obscure name'
1260 for AllIgnore
1261 * sh_kern.c: fix 'update' to display modifications
1262 * sh_kern.c: fix bug with IDT check (spurious alerts b/o uninitialized
1263 fields)
1264 * stealth kernel modules: fix for linux 2.6, fix
1265 redefine of KERNEL_VERSION
1266 * warn about stealth kernel module problem with 2.6 in manual
1267 * sh_unix.c: remove some cruft
1268 * fix a typo in the manual (noticed by J. Rubin)
1269 * configure.ac: re-order output from libprelude-config (required
1270 for static linking - problem reported by E. Neber)
1271 * kern_head.h, kern_head.c: fixes for Linux 2.6 kernel
1272
12731.8.10b (13-07-2004):
1274 * fix incorrect usage of 'retry_msleep()' in sh_kern.c (reported
1275 by Pat Smith)
1276
12771.8.10a (13-07-2004):
1278 * depend-gen.c: fix for FreeBSD 'make' which does not understand
1279 the dependencies ... (problem reported by David Thiel)
1280
12811.8.10 (13-07-2004):
1282 * sh_unix.c/sh_unix.h: fix defaults for 'GrowingLogFiles' policy
1283 (bug report by VZoubkov)
1284 * fix some warnings (unreachable statement) with HP-UX native compiler
1285 * kern_check.c: silence warning about 'sendfile' for 4.10
1286 (noticed by Ryan Beasley)
1287 * modify depend-gen.c to ignore sh_gpg_chksum.h
1288 * add a non-plaintext version of GPG_HASH (sh_gpg_chksum.h)
1289 * .. and for fingerprint
1290 * sh_suidchk.c: fix some compiler warnings on solaris
1291 * allow commas to separate multiple entries in a RedefXXX= directive
1292 * replace sleep/usleep with nanosleep wrapper function
1293 * replace alarm() for read timeout with select() in sl_read_timeout
1294 (should fix bug reported by Scott Kelley)
1295 * increase lstat/open timeout to 6 sec
1296
12971.8.9 (16-06-2004):
1298 * made 'no action specified' error message more informative
1299 (suggested by Stephen Gill)
1300 * fix memory leak in mysql sh_database_query() (bug report by Dejan)
1301 * remove some cruft from the code
1302 * sh_files.c: check MacOS X resource forks (idea from Osiris)
1303 * sh_files.c: no hardlink check for MacOS X
1304 * sh_util_ask_update: fix bug with no terminal in non-interactive mode
1305 (report and debug data by Kris Dom)
1306 * manual refactored
1307 * fix redundant messages when updating with suidcheck
1308 * allow interactive update for suid files
1309 * don't remove the TZ environment variable to guard against
1310 misconfigured hosts
1311 * also use gethostname if uname returns possibly truncated name
1312 * fix improper file descriptor handling in sh_mail.c (bug report
1313 by Alex Weiss)
1314 * cleanup MBLK cruft
1315 * use SH_ALLOC/SH_FREE in sh_prelude.c
1316 * update sstrip to Version 2.0
1317
13181.8.8 (25-05-2004):
1319 * fix compilation problem on AIX 5.2 (nameser_compat.h; report by
1320 Tim Evans and Ian McCulloch)
1321 * don't check for trusted paths on Cygwin
1322 * add Windows HOWTO written by Kris Dom
1323 * kern_check.h: extend FreeBSD syscall table for 5.x
1324
13251.8.7a (03-05-2004):
1326 * sh_mail.c: fix subject length
1327 * sh_mail.c: fix the sh.mailNum.alarm_last fix (report by Kris Dom)
1328 * sh_utils.c: sh_util_ask_update(): fix ISO C conformance bug
1329 (compile problem reported by Kris Dom)
1330
13311.8.7 (01-05-2004):
1332 * sh_mail.c: fix incorrect count of sh.mailNum.alarm_last, causing
1333 empty mails (introduced with segfault fix in 1.8.6, report
1334 by Kris Dom)
1335 * sh_utils.c: sh_util_ask_update(): check whether stdin is a terminal,
1336 try to reopen on controlling terminal if not
1337 * sh_utmp.c: fix order of options (problem report by Uri)
1338 * sh_files.c: sh_files_chk(): set tmp = NULL at end of loop
1339 (may cause segfault on null dereference for missing files)
1340 * sh_unix.c: patch by Marc Schütz (order of sh_unix_getinfo_type,
1341 sh_unix_getinfo_attr)
1342 * don't use dh_installmanpages in 'make deb' (samhain/yule conflict
1343 reported by xavier)
1344 * on HP-UX, define _XOPEN_SOURCE_EXTENDED in sh_mail.c and sh_tools.c
1345 (suggested by Kris)
1346 * include nameser_compat.h in sh_mail.c (for MacOS X,
1347 suggestion by jna)
1348 * sh_utmp.c: fix time for logout events (reported by Erich
1349 van der Velde)
1350
13511.8.6 (15-04-2004):
1352 * add CL option to set threshold for prelude and RDBMS
1353 * sh_mail.c: fix bug with MailSubject option (segfault on NULL pointer
1354 dereference; reported by Micha Silver)
1355 * fix compiling with --disable-encrypt (reported by Pat Smith)
1356 * fix minor problem in scheduler (don't return before all schedules
1357 are tested, to set last_exec correctly)
1358
13591.8.5 (05-04-2004):
1360 * fix bugs in sh_utmp.c (unlinking of list head); may fix an OpenBSD
1361 problem (endless loop; report and debugging aid by Joe MacDonald)
1362 * fix hardlink check (null dereference in error message, segfaults
1363 on solaris - noticed by Bob Bloom)
1364 * sh_suidcheck: don't truncate quarantined file if nlink > 1
1365 * fix Install.sh (no --seperate-output with --radiolist); patch by
1366 Greg Kimberly
1367
13681.8.4 (17-03-2004):
1369 * add Prelude patch by Patrice Bourgin
1370 * add license statement to sh_mounts.c, sh_userfiles.c after
1371 receiving a clarifying e-mail from Cian Synnott
1372 * support UsePersistent = no for Oracle (problem spotted and fix
1373 tested by Michael Somers)
1374 * fix bug in samhainadmin.pl
1375 * sh_gpg.c: describe type of gpg error (if any)
1376 * fix persistent connections with postgresql (reported by
1377 Erwin Van de Velde)
1378 * prelude: local 'meaning' shadows global in sh_prelude_alert
1379 (spotted by David Maciejak)
1380 * uname: workaround for cases where nodename would be a possibly
1381 truncated FQDN (problem reported by Cian Synnott)
1382 * re-write parts of sh_kern.c, store kernel info in baseline database
1383 -> no need to recompile after kernel upgrade
1384 * modify timeouts in sh_unix_getinfo, add timeout warning
1385 * change handling of dangling symlinks (store in db)
1386 * fix typo with MSG_FI_OBSC2 (double slash)
1387 * remove redundant operation in sh_utils_safe_name
1388 * fix occasional random start bytes of long messages in
1389 sh_error_string (sl_strlcat -> sl_strlcpy)
1390 * provide details for missing files (as for added files)
1391 * remove duplicate message for no such group/user
1392 * add fixes for samhain.oracle.init (supplied by Michael Somers)
1393 * fix date insertion for Oracle (fix by Michael Somers)
1394 * manual: fix incorrect statement about RPM (noticed by
1395 Lars Kellogg-Stedman)
1396
13971.8.3 (02-02-2004):
1398 * add a HOWTO-client+server-troubleshooting document
1399 * fix another bug with SIGUSR2 (suspend mode)
1400 * new option SetBindAddress (--bind-address=...) to force
1401 interface for outgoing connections on multi-interface box
1402 * don't link against libgmp if not required (i.e. standalone)
1403 * test for ext2fs/ext2_fs.h or linux/ext2_fs.h
1404 * new make targets 'emerge' and 'tbz2' for gentoo
1405 * update rules.deb.in based on the Debian package
1406 by Javier Fernandez-Sanguino
1407 * updated config.guess, config.sub to version 2002-09-05
1408 * external command: report failure only once
1409 * console: reset failure status after success
1410 * README.UPGRADE: explain 1.7.x <-> 1.8.x client/server compatibility
1411 * use persistent connection to database by default
1412 * option UsePersistent=no to switch off persistent connection
1413
14141.8.2 (19-01-2004):
1415 * sh_userfiles.c: new option UserfilesCheckUids (requested)
1416 * sh_error.c: server: don't log to logfile before dropping root
1417 * new script scripts/samhainadmin.pl (administrative tasks for
1418 signed config/database files)
1419 * add changes code to log_msg for reports on modified files
1420 * change default log threshold to 'mark', as 'none' tends
1421 to confuse new users
1422 * faster response time for SIGUSR2
1423 * revised (mostly backward-compatible) message classes
1424 * fix missing check of mailTime in server select loop
1425 * add support for libprelude (version 0.8.10)
1426 * fix format for MSG_E_GRNULL (reported by Stefan Hudson)
1427 * fix Bourne shell incompatibility (export) in samhain-install.sh
1428 (first reported by David Thiel)
1429 * fix typo in spec file (first reported by Christian Vanguers)
1430 * remove some cruft (signal handler, memory handling)
1431 * return from sigterm handler, rather than exit directly
1432 (re-entrancy problem causes more problems than it's worth)
1433
14341.8.1 (03-12-2003):
1435 * fix gmp detection (problem pointed out by Nix)
1436 * fix/improve the error message if test compiling with mysql fails
1437 * new CL option --interactive for interactive db update
1438 * fix some compiler warnings from IRIX MIPS compiler
1439 * kern_head.h, kern_head.c: option to disable IDT check
1440 * kern_head.h, kern_head.c: update kernel syscall table (2.4.20,2.6)
1441 * sh_utmp.c: count number of logins (request by Erwin Van De Velde)
1442 * change username -> userid, remove (long) userid (bug noticed
1443 by Erwin Van De Velde)
1444 * emit ADDED message for new SUID/SGID files
1445 * add trailing slash to excluded directory if there is none
1446
14471.8.0a (04-11-2003):
1448 * sh_error.c: remove two debug printf's
1449
14501.8.0 (31-10-2003):
1451 * manual: make ps file fit on both a4 and letter paper
1452 * sh_socket.c, sh_socket.h, sh_forward.c: socket interface
1453 to send (quit/reload) commands to clients
1454 * sh_forward.c, configure.ac: enable build with libwrap
1455 (Wietse Venema's TCP Wrappers library)
1456 * sh_ignore.c, sh_ignore.h, sh_files.c, sh_hash.c, sh_readconf.c:
1457 new option to suppress messages for new and/or deleted files
1458 * samhainrc.aix5.2.0: contributed by Christoph Kiefer
1459 * samhain.c: fix compile warning on solaris (noticed by Ian Hunt)
1460 * sh_database.c: undef debug code for oracle
1461 * samhain.oracle.init: contributed by Joern Michael Krueger
1462 * configure.ac, sh_utils.ac, Makefile.in, sh_modules.c,
1463 sh_cat.c, sh_cat.h, sh_mounts.c/h, sh_userfiles.c/h:
1464 check-mounts and userfiles modules contributed by eircom.net
1465 * sh_utils.c: fix off-by-one bug in sh_util_compress()
1466 * sh_forward.c, sh_tools.c, configure.ac:
1467 version 2 client/server protocol
1468 * sh_mail.c: add %S to include severity in subject (user request)
1469 * sh_suidchk.c, 1093: fix warning about unused var 'flags' on FreeBSD
1470 * samhain.h, sh_unix.h, sh_unix.c: extern inline -> static inline
1471 for --enable-ptrace
1472 * samhain.c: lower priority for 'uninitialized module' message
1473 * sh_entropy.c: lower priority for message if /dev/random blocks and
1474 /dev/urandom is available
1475 * improved error messages in sh_readconf.c
1476 * print system error message for getpwuid, getgrgid
1477 * fix missing module init after SIGHUP (noticed by Cian Synnott)
1478
14791.7.12 (13-10-2003):
1480 * sh_mail.c: fix buffer overflow in mail handler (introduced in 1.7.10)
1481 thanks to bug reports by Jason Martin and Matthew P. Cox
1482
14831.7.11 (01-09-2003):
1484 * samhain.c, samhain.h, sh_unix.c, sh_forward.c, sh_html.h:
1485 - change SIG_USR1 to switch between dbg on/off
1486 - change SIG_USR2 to switch between suspend on/off
1487 - fix CLT_ILLEGAL to actually work
1488 - introduce new state CLT_SUSPEND
1489 - force reauthentication after suspend
1490 * slib.c: change MAXFD from FOPEN_MAX (16) -> 1024
1491 * sh_suidchk.c: better AIX fs detection (Christoph)
1492 * sh_entropy.c: increase buffer size for unix entropy gatherer
1493 (problem reported by D. Danielson)
1494 * default config files: add lots of comments, list more options
1495 * sh_error.c: set default severities to 'crit'
1496 * sh_readconf.c, sh_cat.c, sh_cat.h: stricter check on config
1497 file syntax, issue warnings (triggered by C. Kiefer)
1498 * Makefile.in: handle depend-gen errors more gracefully
1499 * sh_err_console.c: fix bug in enable_msgq (reported by F. Behrens)
1500 * configure.ac: workaround for mysql_config weird output
1501 (reported by G. Faron)
1502 * sh_unix.c, sh_tiger0.c: check IO limit during read of large files
1503 * depend-gen.c: close streams before attempting to rename (Cygwin)
1504 * Makefile.in: fail gracefully if depend-gen fails
1505 * sh_database.c: sh_database_query(postgresql): fixed missing SL_ENTER
1506
15071.7.10 (27-07-2003):
1508 * FreeBSD init script: define $pidfile (reported by D. Thiel)
1509 * sh_unix.c, sh_unix.h: fix compile error on AIX 4.2
1510 * sh_schedule.c: fix bad array size
1511 * samhain.c: fix pid_t <> int casts
1512 * sh_kern.c: fix repetitive messages
1513 * configure.ac: try to bootstrap if TIGER192 not supported by gpg,
1514 provide a detailed error message
1515 * configure.ac: try harder to locate mysql
1516 * docs/Changelog: retroactively add release dates, if known
1517 * sh_mail.c: fix potential message truncation in mailer
1518 * sh_unix.c, samhain.c, samhain.h: make --enable-ptrace more portable
1519 * sh_readconf.c: fix segfault (dereference of uninitialized pointer)
1520 if --with-gpg and --enable-stealth are used together (reported
1521 by Anthony Caetano)
1522 * sh_unix.c, samhain.c, sh_calls.c: fix problems with descriptive
1523 error messages (larger GLOB_LEN, stat fills aud_err_message)
1524
15251.7.9 (30-06-2003):
1526 * sh_err_log.c: fix segfault on SIGABRT (dereference of freed memory),
1527 problems with SIGABRT noticed by Brian and Alf B Lervåg
1528 * deploy.sh.in: fix some bugs (found by Alf B Lervåg)
1529 * scripts/chroot.sh: fix typo (found by Alf B Lervåg)
1530 * configure.ac (khide): search also for 'd sys_call_table' (noted by
1531 cuek_saja)
1532 * strip whitespace before checking gpg checksum (noted by D. Thiel)
1533 * manual (faq section): explain how to stop console output
1534 * Makefile.in: fix re-naming of yule with --enable-install-name
1535 * HOWTO-client+server.html: fix typo (noted by xavier renaut)
1536 * configure.ac: escape '-' in awk regex (required by GNU awk 3.1.1)
1537
15381.7.8 (28-05-2003):
1539 * sh_unix.c: new mlock implementation with reference count
1540 and page alignment (fix for solaris problem)
1541 * kern_head.c: search also for 'xxxxxxxx d sys_call_table'
1542 * sh_html.c: write status comment (for Beltane 2)
1543 * add CL option --delimited for comma-delimited signature database dump
1544 * sh_mail.c: check exit status of push_list to fix counting bug
1545 (bug reported by Alan Moore)
1546 * configure.ac: add error message to --with-libs
1547 * fix spelling of $DAEMON in init script (noted by C. Grigoriu)
1548 * fix missing initgroups()
1549
15501.7.7 (06-05-2003):
1551 * sh_forward.c: fix bug if compiled with --enable-udp, but disabled
1552 in config file (found by Andy OBrien)
1553 * sh_database.c: sh_database_entry(): size -> c_size (two places)
1554 to fix writing of '\0' to arbitrary places :(
1555 (problem pointed out by Stefan Giesen)
1556 * profiles/*/configopts: fix --with-base -> --enable-base
1557
15581.7.6 (24-04-2003):
1559 * sh_forward.c, entry.html, head.html: fix/additions by Stefan Giesen
1560 * fix samhain_hide for the O(1) scheduler used by RedHat:
1561 configure.ac, acconfig.h: check for next_task in struct task_struct
1562 samhain_hide.c: use find_task_by_pid if no next_task in task_struct
1563 * samhain_erase.c: add MODULE_LICENSE("GPL") to fix warning
1564
15651.7.5 (15-04-2003):
1566 * sh_cat.c, sh_forward.c, sh_hash.c: fix double 'msg' tag
1567 * manual: point out the bmaxdata problem on AIX in faq section
1568 * trustfile.c: don't check symlinks (permissions of directory count)
1569 * sh_schedule.c: fix problem with daylight saving switchover
1570 * sh_samhain.c: close all open fd's >2 before reading the conf file
1571 * sh_unix.c: fix dereferenced NULL pointer when exiting on non-existing
1572 user
1573 * sh_forward.c: fix dereferenced NULL pointer when exiting on udp error
1574 * sh_forward.c: place timestamp code before select() timeout handler
1575 * fix incorrect class of timestamp messages (conflict with manual)
1576 * sh_readconf.c, sh_forward.c: new config option SetStripDomain
1577 * configure.ac: add warning if /lib/modules/`uname -r`/build/include
1578 not found
1579 * samhain_hide.c: adapt for RedHat 2.4 kernel (fetch sys_call_table
1580 address from System.map)
1581 * sh_err_syslog.c: fix for Solaris
1582 * samhain.spec.in: strip REQ_FROM_SERVER from config file install path
1583
15841.7.4 (21-03-2003):
1585 * configure.ac: fix bug in defargs (--with-base > --enable-base)
1586 * aclocal.ac: detect unsupported options
1587 * kern_check: add syscalls, skip unused syscalls
1588 * fix Manual (--enable.../--with... inconsistency)
1589 * add two HOWTOs (signed files, server/client)
1590 * moved manual into new subdirectory docs/
1591 * add admin scripts by S.Bailey/M.Redinger
1592 * option to have a version string in db file
1593
15941.7.3 (23-02-2003):
1595 * samhain-install.sh: use yule user key for signing on install
1596 * fix a bug in sh_err_console.c (attempted write to const char)
1597 * sh_gpg.c: if server, always use ~unprivileged_user/.gnupg
1598 * Makefile.in: make target 'trustfile' depend on config.h
1599 * configure.ac: don't use install_name before it is defined ...
1600 * sh_tiger0.c: fix bug in checksum computation introduced in 1.7.2
1601 * samhain.c: make sure daemon cannot be forced into 'update' mode
1602 * sh_hash.c: remove AIX workaround (AIX has been fixed meanwhile)
1603
16041.7.2 (04-02-2003):
1605 * sh_kern.c: use sys_call_table address from System.map
1606 * fix for reserved SQL keyword 'group'
1607 * add AC_SYS_LARGEFILE to configure.ac
1608 * allow separate client-specific log files for server
1609 * sstrip.c: compile sstrip code only for i386
1610 * sh_unix.c: closeall: don't close trace file
1611 * slib.c: don't trace sl_is_suid (leads to recursion in trace handler)
1612 * samhain-install.sh.in: fix detection of LSB compliant systems
1613 * sh_tools.c: get_client_*_file: lstat -> stat to allow symlinks
1614 * sh_forward.c: sh_forward_do_write: set O_NONBLOCK for fd
1615 (may block otherwise, for no good reason apparently ...)
1616 * samhain.spec.in: replace %configure with ./configure
1617 * sh_unix.c: re-write signal handling (use __malloc_hook et al. to
1618 check whether we are in the middle of a free/malloc/realloc/memalign)
1619 * sh_unix.c: use new safe_logger() function to log from signal handler
1620 * sh_err_log.c: fix xml
1621 *
1622 * fix Makefile.in to exit non-zero on compile failure
1623 * database init: create index on log_host, entry_status
1624 * sh_suidchk.c: fix path building
1625 * sh_tiger0.c: read larger blocks
1626 * sh_hash.c: cast inode to UINT32
1627 * sh_tools.c: check that config/database files size fits in uint
1628 * sh_error.c: export flag_err_debug to avoid unnecessary calls
1629 * sh_unix.c: save the open() call in sh_unix_getinfo_attr()
1630 * profiles/redhat_i386/bootscript: add # description field
1631 * deploy.sh.in: set owner + permissions for files in yule_filedir
1632 * profiles/debianlinux_i386: fix bootscript
1633 * Makefile.in: fix deploy file lists and targets (include init+scripts)
1634 * MLOCK GOOD/BAD -> SL_FALSE/SL_TRUE
1635 * sh_mail.c: GOOD/BAD -> SL_FALSE/SL_TRUE (AIX sys/param.h)
1636 * sh_err_syslog.c: split long messages rather than truncating
1637 * sh_error.c: allocate msg to fix truncation limit
1638 * sh_unix.c: closeall fd's >= 3 in non-daemon mode (inherited
1639 filedescriptors may exceed FOPEN_MAX, causing problems in
1640 sl_open_file)
1641 * sh_err_console.c: avoid stdio
1642 * trustfile: dirz: make swp[] static
1643 * slib.c: speed up sl_strlcat
1644 * clean up some bad heap allocation (PATH_MAX+(1|2) -> PATH_MAX)
1645 * remove some unused code
1646 * slib.c: support long long int in the snprintf replacement
1647 * configure.ac: new configure macro to check whether sa_sigaction works
1648 * Makefile.in: make sstrip, encode dependent on config.h
1649
16501.7.1a (08-01-2003):
1651 * fix a syntax error in samhain-install.sh.in
1652
16531.7.1 (07-01-2003):
1654 * search runlevel scripts in ./init or ./
1655 * handle all distro-specific Linux runlevel script issues
1656 within a single script
1657 * support install-boot on Yellow Dog Linux and Slackware
1658 * samhain-install.sh: fix a bug for unknown Linux
1659 ('"' not closed, DVER not set)
1660 * samhain-install.sh: check for /etc/yellowdog-release
1661 * sh_database.c: fix missing entry for 'userid' in attr_tab[]
1662 * fix debian.rules.in (disable sstrip)
1663 * update make targets: 'srpm', 'srpm-dist', 'rpm'
1664 * check for zlib if mysql is used
1665 * workaround for NetBSD bug with libresolve
1666 * fixed problems with spec files
1667
16681.7.0 (22-12-2002):
1669 * improved spec files (Andre Oliveira da Costa <brblueser@uol.com.br>)
1670 * sh_unix.c: fix a dereferenced static pointer in tf_trust_check
1671 * runlevel scripts: remove pid file after stop
1672 * make the data directory read-only for the daemon
1673 * treat 'localhost' specially in MX resolver
1674 * sh_err_log.c: set sh.flag.log_start == TRUE after writing </trail>
1675 * deploy.sh.in: fix quoting (fix by Simon Bailey)
1676 * slib.c: make sl_get_euid et al. behave well if uids not stored
1677 * trustfile.c: use euid = uid(SH_IDENT) if server
1678 * sh_mail.c: include an MX resolver
1679 * Makefile.in: install-user routine for user installation
1680 * have yule drop root
1681 * sh_tools.c: open_temp use logdir if server
1682 * unified options for runlevel script
1683 * HP-UX, IRIX runlevel scripts
1684 * AIX inittab entry
1685
16861.6.6 (13-12-2002):
1687 * configure.ac: solaris cc -O2 -> -xO2
1688 * sstrip.c: avoid alpha architecture
1689 * profiles/solaris/configopts: no --enable-static
1690 * sh_forward.c: sh_forward_req_file: copy argument to local array
1691
16921.6.5 (04-12-2002):
1693 * sh_utmp.c: set userlist = NULL in sh_utmp_end ()
1694 * sh_unix.c: do not assume that environ is sane
1695 * exit handler: write </trail>
1696 * sh_log_file(NULL): test sh.flag.log_start != S_TRUE
1697 * FreeBSD rc script does not blindly accept content of pid file
1698 * configure.ac: allow 'localhost' for log server
1699 * sh_calls.c: retry_connect: ntohs (port)
1700 * testrun_2[abc].sh: --with-logserver=localhost for client
1701
17021.6.4 (12-11-2002):
1703 * sh_tools.c: fix error when escaping '=<'
1704 * fix the 'make srpm' target
1705 * deploy.sh.in: avoid that client is named 'yule'
1706 * define memset to sl_memset
1707 * fix type cast of uid_t, gid_t
1708
17091.6.3 (31-10-2002):
1710 * fix options for Sun/Solaris native compiler
1711 * sh_unix.c: MSG_FI_LIST (line 2333): cast theFile->size to fix error
1712 * test sstrip on freebsd
1713 * default config file for freebsd
1714 * make target to build .deb packages
1715 * sh_readconf.c: fix bug in error message
1716 * samhain.c, sh_suidchk.c: fix initialization of suidchk
1717 * samhain-install.sh.in: don't remove config file by default
1718 * samhain-install.sh.in: support complete de-installation
1719 * samhain-install.sh.in: add support for Gentoo, FreeBSD, and Solaris
1720 * samhain-install.sh.in: check more paths
1721 * sh_unix.c: fix sys_siglist declaration [NetBSD portability issue]
1722 * sh_calls.c: save error message in retry_lstat()
1723
17241.6.2 (04-10-2002):
1725 * make target to build rpms
1726 * update samhain.spec.in, samhain.startRedHat
1727 * support DESTDIR, as in 'make DESTDIR=/what/ever install'
1728 * explicitely set -fno-omit-frame-pointer b/o gcc bug
1729 * mv configure.in to configure.ac to benefit from autoconf wrapper
1730 * sh_modules.c, sh_modules.h: add mod_reconf() to run at SIGHUP
1731 * slib.c: fix debug messages (no msgs for dlogActive <= 1)
1732 * sh_schedule.c, samhain.c, sh_suidchk.c:
1733 scheduler may accept multiple schedules
1734
17351.6.1 (04-09-2002):
1736 * sh_schedule.c: bugfix (executes only after first day)
1737 * rm obsolete WITH_TRACE stuff
1738 * new dlog() function for debug logging
1739 * some more descriptive error messages
1740
17411.6.0 (27-08-2002):
1742 * omit the -fomit-frame-pointer option (bugs in some gcc versions ?)
1743 * sh_error.c: fix escape mode when logging to database
1744 * sh_forward.c: fix error (twice escape) in recv_syslog_socket
1745 * sh_tools.c: change escape mode for server-received data
1746 * sh_mem.c: change ulong -> size_t in sh_mem_malloc()
1747 * configure.in: fix localstatedir if --prefix=USR
1748 * sh_hash.c: snprintf() -> sl_snprintf()
1749
17501.5.5 (07-08-2002):
1751 * sh_err_log.c: fix incorrect xml syntax for client messages
1752 logged by server
1753 * sh_err_log.c: fix incorrect '</trail>' entries on client EXIT
1754 * sh_files.c: introduce file_class_next
1755 this fixes the problem that a policy for the directory
1756 inode erroneously becomes a policy for the directory itself.
1757
17581.5.4 (17-07-2002):
1759 * sh_hash.c: fix buffer overflow with (micro-)stealth
1760 * sh_database.c: set path[] 1024 -> 12288
1761 * sh_database.c: set query[] 2048 -> 16383
1762 * sh_database.c: set values[] 1024 -> 16383
1763 * sh_forward.c: larger limit for message size (16 kB)
1764 * trustfile.c: set MAXFILENAME 2048 -> 4096
1765 * fixed a bug in the handling of filenames with embedded newlines
1766 * sh_files.c: fix missing sh_util_safe_name() in debug output
1767 * --with-sender can specify a full address
1768 * fix xml log in a backwards compatible way
1769
17701.5.3 (03-07-2002):
1771 * fix combination of stealth and sql logging
1772 * fix some more places where invalid UIDs/GIDs trigger errors
1773
17741.5.2 (01-07-2002):
1775 * include solaris config file from (sean [at] boran d.o.t com)
1776 * test for files/dirz defined twice in the configuration file
1777 * option to disable reverse lookup on outbound connections
1778 * option to use socket peer as client name (with name resolving)
1779 * sh_html.c: fix an HTML bug (twice </head><body>)
1780 * sh_suidchk.c: fix warning on AIX b/o dirname()
1781 * allow logging server -> syslog if yule is NOT configured to
1782 receive syslog messages
1783 * define PRIi64 to "lld" if undefined
1784 * invalid UIDs: use gid/uid as name, error level SeverityNames
1785 * minor fixes for connect_port
1786 * sh_hash.c: flush output of db listing before _exit()
1787 * configure.in: fix incorrect default ${install_name} for server
1788 * configure.in: try harder to find mysql.h / libpq-fe.h
1789 * sh_files.c: sh_files_checkdir:
1790 closedir() early to not exhaust OPEN_MAX
1791
17921.5.1a (30-05-2002):
1793 * fix missing LSB init script
1794
17951.5.1 (27-05-2002):
1796 * fix '-t update' option
1797
17981.5.0a (23-05-2002):
1799 * fix configure.in
1800
18011.5.0 (22-05-2002):
1802 * include solaris nosuid patch from (nathoo [at] co d.o.t ru)
1803 * similar fix for bsd nosuid
1804 * speed up -t update
1805 * convert manual to DocBook, distribute html and ps
1806 * fix some more problems with configure.in, Makefile.in
1807 * fix testsuite, add tests for udp, mysql
1808 * MSG_TCP_MSG: host -> remote_host
1809 * convert to autoconf 2.53
1810 * make c_bits.sh exit with status 0
1811 * sh_database.c #include "mysql.h" --> <mysql.h>, ditto libpq-fe.h
1812 to avoid dependency tracking problems
1813 * samhain.c remove *YULE* #ifdefs
1814 * acconfig.h remove *YULE* #undefs
1815 * samhain.c: procdirSamhain: lstat --> stat (allow symlink)
1816 * configure.in: add checks for correct user input
1817 * Makefile.in: add automatic dependency tracking
1818 * depend-gen: tool to figure out dependencies
1819 * chkconfig comments in redhat start scripts
1820
18211.4.8:
1822 * sh_database.c: fix missing attr_old, attr_new, (from)host columns
1823 * configure.in, Makefile.in: fix an error in the configfile
1824 definition with REQ_FROM_SERVER
1825 * sh_err_console, sh_err_log: avoid recurrent failure messages
1826 * timeout on read from files (/proc)
1827 * fix errrors with setjmp/longjmp/alarm
1828 * fix memory leak in server (~20 byte/file download in sh_tools, 930)
1829 * check gpg signature for files downloaded from server, add a
1830 regression test
1831 * fix chown in solaris bootscript
1832 * provide second scheduler for file check
1833 * provide scheduler for file check
1834 * provide scheduler for SUID check
1835
18361.4.7 (08-04-2002):
1837 * make daemon control LSB-compliant (arguments, exit status)
1838 * set log_ref = 0 for server messages
1839 * boolean option SetDBServerTstamp to disable entering server
1840 timestamps for received client messages into database
1841 * sh_suidcheck: check for "nosuid" mount option if getmntent is used
1842 * fix logrotate script in manual (reported by Scott Worthington)
1843 * don't strip numerical IP addresses
1844 * check item->status_now != CLT_TOOLONG in client_time_check()
1845 * set log_host to client in db client message
1846
18471.4.6a (20-03-2002):
1848 * define prefix in deploy.sh
1849
18501.4.6 (19-03-2002):
1851 * modify samhain_hide.c to hide processes on new Linux kernels
1852 * better error diagnostics in kern_head.c
1853 * fix compile error in all_items ()
1854 * check length of install-name in enable-khide (max is 15)
1855 * define exec_prefix in deploy.sh.in
1856 * make configure a bit more cross-compiler friendly
1857
18581.4.5 (07-03-2002):
1859 * Make sure missing file is reported even if ptr->reported == S_TRUE
1860 because the file has been added.
1861 * propagate 'reported' flag from sh_files_checkdir() into file list
1862 * close checkfd in sh_gpg_check_file_sign()
1863 * sh_derr(): kill(parent, SIGCONT) after ptrace(PT_DETACH,...)
1864 * use sh.srvcons.name in dbg() to get debugging info from daemon
1865 * option to log file timestamps with localtime instead of GMT
1866 * comment out MSG_FI_ADD in sh_dirs_chk () - obsoleted by mandatory
1867 sh_files_filecheck(directory) that triggers MSG_FI_ADD in sh_hash.c
1868 * set ptr->reported = S_FALSE; for reappeared files in sh_files_chk()
1869 to make sure re-disappearing will get reported
1870 * new function sh_hash_set_missing() to remove file record
1871 without (duplicate) 'missing' message
1872 * make sure all items are reported for added files
1873 * fix stealth mode with sh_kern (encode sh_ks.h -> sh_ks_xor.h)
1874 * clarify in the documentation which gpg options to use for signing
1875
18761.4.4 (11-02-2002):
1877 * check that parent process has exited before writing PID file
1878 * promote MGG_W_CHDIR to SH_ERR_ERR
1879 * add error message to sh_unix_testlock
1880 * fix missing _() macro in sh_aud_set_functions
1881
18821.4.3 (05-02-2002):
1883 * don't check attributes for symlinks (may cause device access)
1884 * add USE mysql; USE samhain; to samhain.mysql.init
1885 * point out the MessageHeader/mysql problem in manual
1886 * add -lz to LIBS for mysql
1887 * strip after install, avoid double strip
1888
18891.4.2 (27-01-2002):
1890 * support for EGD
1891 * fix some more problems with install-deploy / deploy.sh
1892 * fix a bug in profiles/suselinux_i386/bootscript (INSTALL_NAME_)
1893 * fixed the 'external logging' test (init rather than none in rc file)
1894
18951.4.1:
1896 * SuSE: include run level 4+5
1897 * install location of hiding kernel modules changed - some insmod
1898 variants do not test for /lib/modules/$(uname -r)/module_name.o
1899 * new make targets 'install-deploy', 'uninstall-deploy'
1900 * fixed make targets 'deploydir', 'deploydirfast'
1901 * bail on unsupported CL option in deploy.sh
1902 * fix various bugs in deploy.sh
1903
19041.4.0 (16-01-2002):
1905 * fixed missing 'dirname' on Mac OS X
1906 * fixed && tested for/with postgres
1907 * 'user=' -> 'userid=' (reserved word in sql)
1908 * fix the endianess + size of file database; this changes db format
1909 for any non-Linux OS
1910 * --enable-old-format for old (V1.3) database format
1911 * getopt, samhain.c, samhain.h: option -f to loop if not daemon
1912 * sh_hash: list numeric + char data to allow file db update on
1913 server side
1914 * sh_database: modify handling of integer (long) data
1915 * sh_database: datetime in database
1916 * sh_database: hash field in database
1917 * sh_database: rewrite database insert string construction
1918 [use INSERT INTO log (fields) VALUES (values);]
1919 * makefile suse 7.x runlevel entries
1920
19211.3.7 (06-01-2002):
1922 * fix incorrect escape in sh_tools_safe_name
1923 * fix sh_error_handle (4. argument) in sh_extern.c
1924
19251.3.6c:
1926 * fix segfault in sh_database (mysql logging) on solaris
1927
19281.3.6b (03-01-2002):
1929 * fix syntax error ('==') in Makefile.in
1930 * fix configure.in (path for /lib/modules/$(uname -r)/build/include)
1931 * fix sh_kern.c (redeclaration of 'j')
1932
19331.3.6 (03-01-2002):
1934 * sh_kern.c: check integrity of int 80h vector
1935 (SucKIT rootkit - Phrack 58)
1936 * make sure childs in sh_kern are wait()'ed for
1937 * provide start/stop/restart/reload/status interface
1938 * fix a potential segfault (dereferenced NULL pointer) in the server
1939 * use sh_util_flagval for sh_unix_setdaemon
1940 * documentation for logging to SQL database
1941 * configure.in: check for -I/lib/modules/$(uname -r)/build/include
1942 * fix trustfile.c to ignore invalid users
1943 * separate 'make install-samhain' and 'make install-yule'
1944 * separate default log/pid/config files for server/client
1945 - less problems running server and client on same host
1946 * rewrite deploy.sh(.in):
1947 - don't use (make|install) if deploying
1948 - use command line options
1949 - better integrate into server environment
1950 - write install db
1951 * always write a pidfile if daemon
1952 * don't use server's config file as fallback for downloading client
1953 * don't overwrite config file when doing 'make install'
1954
19551.3.5 (28-12-2001):
1956 * fix --enable-message-queue for newer glibc versions
1957 * log to SQL database: implemented, but undocumented yet,
1958 needs to be tested further
1959 * xml: escape received syslog messages
1960 * xml: rename 'time' to 'tstamp'
1961 * make targets: make [un]install-[boot-]yule
1962 (for server-only installation)
1963 * fix samhain_hide.c for 2.4 kernel
1964 * fix sh_kern for updated samhain_hide.c
1965 * new option -j to just list the logfile
1966 * sh_getopt.c: recognize -Dt check for -D -t check
1967 * sh_tiger0.c: fix compiler warning (memmove) on Solaris
1968
19691.3.4 (12-12-2001):
1970 * sh_suidchk.c: option to limit files per second
1971 * sh_unix.c: option to limit (kilo)bytes per second
1972 * sh_hash.c: fix potential problem with '\n' in filename
1973 (not backward compatible if there are filenames with '=')
1974
19751.3.3 (03-12-2001):
1976 * sh_readconf.c, samhain.h, samhain.c, sh_suidchk.c:
1977 option SetNiceLevel to set scheduling priority
1978 * sh_hash.c: bugfix for database listing on Solaris
1979 * taus_seed: bugfix for emergency backup rng seed
1980 * sh_util_safe_name: fix for XML
1981 * sh_utmp_set_login_activate: use sh_util_flagval
1982 * sh_utils.c: sh_util_obscurename: rm 'space' from list
1983 * more backtrace macros
1984 * sh_util_flagval: fix bug to recognize 1/0
1985 * fix test scripts testtimesrv.sh, testext.sh (test.sh 6/5)
1986 * rm stray debug fprintf in sh_srp.c
1987
19881.3.2 (27-11-2001):
1989 * sh_hash.c: fix an error introduced in 1.3.1
1990 * set RLIMIT_CORE to RLIM_INFINITY if --enable-debug
1991
19921.3.1 (25-11-2001):
1993 * slib.c: get backtrace with --enable-debug
1994 * sh_unix.c: allow core dumps when --enable-debug
1995 * configure.in: fix default message queue permissions
1996 * sh_suidchk.c: automatically include suid/sgid files in database
1997 * sh_suidchk.c: check all suid/sgid files
1998 * sh_hash.c: don't insert duplicates when reading the database
1999 * sh_utmp, sh_kern, samhain: fix 1sec offset in timer
2000 * sh_unix.c: don't require /dev/random to be non-world-writeable
2001 * server: fix segfault in zAVLTree.c if avltree == NULL (no clients)
2002 * client: fix segfault on Solaris if path_conf == NULL
2003 * testrun_1b.sh: \(^/.*\) -> \(/.*\) for Solaris sed
2004
20051.3.0 (31-10-2001):
2006 * support compiling with GNU gmp library
2007 * set 3 sec timer on client_time_check to avoid excessive (and
2008 unnecessary) calls under heavy load
2009 * replace sl_strlen with a macro
2010 * store client_t structure in AVL tree
2011 * database format incompatible with previous format, up the magic#
2012 * sh_html.c: cache entry template for speedup
2013 * slib.c: reset islong(double) in sl_printf_count
2014 * sh_hash.c: report on rdev change
2015 * sh_hash.c: print size in 64 bit
2016 * sh_hash.c: save in absolute size types
2017 * sh_unix.c: get values as appropriate type (time_t, dev_t, ...)
2018
20191.2.10:
2020 * update MANUAL
2021 * sh_unix.c: tiger_hash -> tiger_generic_hash
2022 * sh_readcon.c: DigestAlgo option
2023 * sh_tiger0.c: add MD5 and SHA1
2024 * sh_unix.c: fix minor problem with win2k/cygwin
2025
20261.2.9 (17-10-2001):
2027 * fix problem with entry template/empty hostname
2028 * fix MASK_USER_ (MTM -> ATM)
2029 * typo fixed in configure.in (${install_name} -> {install_name})
2030 * bugfix group_old -> size_old in XML code
2031 * skip armor header in signed files
2032
20331.2.8 (29-09-2001):
2034 * Mac OS X: in sh_getopt.c, rename table[] to op_table[] to avoid
2035 obscure compiler warning
2036 * Mac OS X: fix test scripts
2037 * Mac OS X: import newest config.guess, config.sub from ftp.gnu.org
2038 * implement deadtime in syslog recv code to protect against flooding
2039 * sh_err_log: sl_close(fd) if lock|forward fails
2040 * compliance with Filesystem Hierarchy Standard -- Version 2.2 final
2041 * add policies User0, User1
2042 * fix compile problem (FreeBSD) in sh_suidchk.c
2043 * macro to check for debugger breakpoints (linux/i386)
2044 * check for solaris (does not work) in sh_derr (--enable-ptrace)
2045 * option to listen on 514/udp for syslog, drop root
2046 irrevocably if compiled thus
2047 * use (check_mask & MODI_ATM) to decide whether to reset utime
2048 * reset the policy masks on sighup
2049 * option to write XML log messages
2050 * cleanup of message catalog
2051 * modified error messages for BADCONN
2052 * error messages for Rijndael
2053 * block recursive error messages within sh_error_handler()
2054 - would hang the machine ... -
2055
20561.2.7:
2057 * sh_files, sh_utils: check top level directory
2058 * sh_kern, sh_cat, kern_head: check syscall code, fork subprocess
2059 for reading from /dev/kmem
2060 * include /boot in default samhainrc
2061 * change source distribution signing/packaging system
2062 * Makefile, README, MANUAL: adhere to file system standard,
2063 document new locations
2064 * fix a bug in samhain_hide.c
2065
20661.2.6:
2067 * reset list of trusted users before config file re-read
2068 * TrustedUser=... can be a list
2069 * fix severity for files missing from IgnoreAll
2070
20711.2.5:
2072 * include example_pager.pl, example_sms.pl scripts
2073 * explain paging/sms setup in docs
2074 * allow manual exclusion of a directory in suidcheck
2075 * automatically track all file changes
2076 * remove missing files from in-memory database
2077 * add $(KERN) to DEPLOYFILES
2078
20791.2.4:
2080 * log IP address for login/logout events, if supported by the OS
2081 * release block in globerr (callback)
2082
2083-------------
2084
20851.2.3:
2086 * fix problem with reading stealth configuration
2087 * fix a few formats in sh_cat.c
2088 * always use strncmp for file system type check in sh_suidchk.c
2089 (trailing 'fs' may be system specific for some types)
2090 * no bare LF in messages (RFC 2822)
2091 * no lines longer than 998 chars (RFC 2822)
2092 * fix error in testrc_1
2093
20941.2.2:
2095 * make tmp file directory a compile time option
2096 * fix minor bugs in tmp file allocator (potential memory leak,
2097 double slash if root directory)
2098 * obsolete testpipe script removed
2099
21001.2.1:
2101 * fix memory alignment in rijndael-api-fst.c: blockEncrypt()
2102 * fix byte order in HMAC code (compatibility fix for Linux/HP-UX)
2103 * removed a debug fprintf()
2104
21051.2.0:
2106 * fix a bug in the HMAC implementation (thanks to Cesar Tascon
2107 for help in tracking down this one)
2108 * module to check the file system for SUID/SGID files
2109
21101.1.16 (never released):
2111 * fix the recursion depth -1 option as described in the manual
2112 * optional database reload on SIGHUP
2113 * fix a race condition when checking that /dev/random is a charakter
2114 device
2115 * redirect stderr to /dev/null for c_random
2116 (AIX may segfault in netstat...)
2117 * check whether /dev/random is a charakter device in c_random.sh
2118 (we know at least one sysadmin who has set up a fake /dev/random ...)
2119 * don't give NULL as 2. and 3. arg to execve if not Linux - some
2120 Unices (notably Solaris) don't like it
2121 * init ptr = NULL in my_malloc (compiler warning)
2122 * make the bitmask for tests configureable (suggestion by A. Dunkel)
2123 * make the bitmask for tests a static variable
2124 * make (database/logfile/lockfile) path configurable
2125 (to run multiple instances of samhain from an NFS share - on the
2126 wishlist of J. Patton)
2127
21281.1.15 (never released):
2129 * fix minor error in testcompile.sh (rm test_log only at start)
2130 * return from subroutines on sig_terminate == 1
2131 (faster exit on SIGTERM)
2132 * fix re-configuration of addresses
2133 * use sh_util_flagval() in sh_mail_setFlag and sh_kern_set_activate
2134 * SysV message queue as compile option
2135 * config file option to set console device
2136 * removed the pre 1.1.9 code bloat
2137 * don't print the LOGKEY to the console
2138
21391.1.14:
2140 * fix an error in the setup consistency check
2141 * make target to uninstall runtime files
2142 * trustfile.c: check return code of readlink(), fix off-by-one error
2143 * sh_files.c: fix placement of terminator after readlink() call
2144 * sh_files.c: fix a missing set_suid()/unset_suid()
2145 - suid should work, but is not recommended -
2146 * more debug statements in c/s code
2147 * avoid re-entry in sh_unix_sigexit
2148 * put a block around free() and malloc() in wrapper functions
2149 * ditto for glob()/globfree(), regcomp()/regfree(), fdopen()/fclose()
2150 - i.e. avoid corrupting the heap from a signal handler -
2151
21521.1.13:
2153 * optimized the size of the configure script somewhat
2154 * modify the compile and hash test scripts
2155 * read '\0's in sh_unix_getline
2156 * exponential schedule for connection attempts
2157 * make stealth working properly with signed files
2158 - config file should be signed now before embedding in picture -
2159 * fix a race in using signed files
2160 * updated err messages for PWNULL, GRNULL
2161 * add missing shell script for test 11
2162 * add mandatory source file/line info with -p debug
2163 * add mandatory source line info with BADCONN
2164 * fix a latex error in the manual
2165
21661.1.12:
2167 * debug output to console if compiled with --enable-debug and
2168 running as daemon
2169 * make reportonlyonce=true the default
2170 * make sure state changes of a file are always reported, even
2171 with reportonlyonce=true
2172 * Linux kernel modules (samhain_hide, samhain_erase)
2173 * fixed incorrect return value of sh_util_flagval
2174 * fixed an error in sh_files.c: happens with -t init and first
2175 file that is checked does not exist
2176 * revised install/uninstall targets in the Makefile
2177 * module to check for clobbered kernel syscalls (tested on Linux 2.2)
2178 * more diagnostic error messages in sh_gpg.c
2179 * more diagnostic error messages in sh_mail.c
2180 * error in mail.c fixed
2181 (address -> address_list[i] for multiple recipients)
2182 * docs updated, better(?) explanation of signed files
2183 * skip over path in gpg checksum output
2184 * check client name against IP address and FQDN
2185 * fix for --disable-* in config file
2186 * fixed a server crash (MSG_TCP_OKMSG without arg)
2187 if the server is run with debug level output threshold
2188 * catch EAGAIN in sh_gpg.c pipe reader
2189 * fix the 'external logging' test to make it work on BSD
2190 * error message if no local path to init DB
2191 * check for i86/Solaris in configure (vsnprintf prototype)
2192 * make SRP the default
2193
21941.1.11:
2195 * make log file verification more convenient
2196 * fix problem with message classes in stealth mode
2197 * linux: do not try to read file attributes for devices
2198 * handle the root directory correctly (avoid "//" in listing)
2199 * fix problems with blockin on FIFOs/char dev
2200 pointed out by I. Rogalsky (rog@iis.fhg.de)
2201 - open in nonblocking mode for read, then set to blocking
2202 - open file only if regular
2203 * fix alignment in memory profiler
2204
22051.1.10:
2206 * minor code cleanup
2207 * fix an error in trustfile.c (handling of empty/incomplete
2208 group entries in /etc/group, bug report by A. Capriotti )
2209
22101.1.9:
2211 * compatibility option for old behaviour (plain hash instead
2212 of HMAC, ECB instead of CBC mode)
2213 * use CBC rather than ECB mode for encryption
2214 * use HMAC-TIGER for message authentication codes
2215 * handle NULL data in sh_tiger_hash
2216 * option to set syslog facility (default is LOG_AUTHPRIV)
2217 * longer timeout (300 sec) on /dev/random if no /dev/urandom
2218 * fix minor output error with stealth option
2219 * option not to log names of config/database files on startup
2220
22211.1.8:
2222 * fix error in syslog routine
2223 * fix missing 'test' in configure.in
2224 * fix error in replace_tab() in sh_html.c
2225 * fix minor memory leak in sh_util_regcmp()
2226
22271.1.7:
2228 * timeout on read_mbytes (from /dev/random; fallback to /dev/urandom)
2229 * fix for FreeBSD: ut_user -> ut_name in sh_utmp.c
2230 * fix for Alpha: consider $ac_cv_sizeof_unsigned_int_ in configure.in
2231 * fix for Alpha: format string in sh_tiger0.sh
2232 * on Linux, now compiles cleanly with
2233 -Wall -W -Wstrict-prototypes -Wcast-align
2234 * fix problem with recursion depth
2235 (pointed out by Vic <hvicha@mail.ru>)
2236 * #include "sh_tools.h" in sh_unix.c and fix the
2237 --with-timeserver option (reported by Vic <hvicha@mail.ru>)
2238 * place read_port(), MSG_TCP_NETRP outside ifdefs
2239 * close fd/zero skey before execve
2240 * verify client name against socket peer
2241 * ... with configureable error priority
2242 * use strcmp() rather than strncmp() in search_register()
2243 * fix race between lstat() and open() for checksum
2244 (reported by dynamo <dynamo@ime.net>,
2245 JJohnson <JJohnson@penguincomputing.com>)
2246 * enable globbing for filenames
2247 * fix Solaris problem: siginfo_t may be NULL
2248 * fix missing SL_EBADGID in tf_trust_check
2249 * test case for external scripts, fix flushing pipe
2250 * fix a typo in sh_ext_type
2251 * do an fdexec w/checksum on Linux if calling external program
2252 * even safer tmp file creation
2253 * allow db update
2254 * fix compile options for --enable-debug
2255 * fixed a spelling error in the output
2256 * test program for full CS support (config/database download)
2257 * tell which file is searched for cs download
2258
22591.1.6:
2260 * fix bug in sh_readconf_line (segfault on erroneous config lines)
2261
22621.1.5:
2263 * sh_unix.c: sh_unix_getinfo_attr: f -> flags
2264 * use gettimeofday as last resort
22651.1.4:
2266 * fix AIX compiler warning in sh_forward (cast arg1 of sh_tiger_hash
2267 to (char *)
2268 * configure: add static link flags for some more os (from tar)
2269 * don't strip twice (some stupid systems abort)
2270 * fix for reading from /dev/random on non-Linux systems (untested)
2271 * sh_mail.c: end all message lines with \r\n
2272 * stealth: ignore \r, \"
2273 * take out tracing from --enable-debug (presently useless anyway)
2274 * fix some remaining cleartext with debug && stealth combined
2275 * fixed a small memory leak in sh_err_log.c
2276
22771.1.3:
2278 * fixed circular logic in taus_seed() (fallback method only)
2279 * fix for missing _SC_OPEN_MAX (runaway close())
2280
22811.1.2:
2282 * implement message classes
2283 * let server recognize client message severity and class
2284 * secondary log server
2285 * keep database in memory (allows to close file
2286 if retrieved from server)
2287 * encrypt client/server communication
2288
22891.1.1:
2290 * Compilation problems with native Solaris compiler fixed
2291 * fill in euid/ruid variable
2292 * manual.pdf --> MANUAL.pdf
2293 * debug sh_util_formatted()
2294 * http refresh 120sec for server stat page
2295 * trace/debug options
2296 * fixed problem with utmp.c options
2297 * fixed problem with sh_mail_setaddress
2298 * option for custom message header
2299 * fixed problem in compdata
2300 * fixed problem in mail verification
2301 * remove eventual trailing '/' in file names
2302 * fixed problem with report string for modified files
2303 * option to report in full detail
2304
23051.1.0:
2306 * Move error messages to catalog
2307 * Make error message format more uniform
2308 * Wrap sytem calls that could be interrupted by signals
2309 * Warn on append to database
2310 * Option for full details on mod. files
2311 * Option to report only once on mod. files
2312 * Generally speaking, major modifications with potential new bugs
2313
23140.9.5:
2315 * sh_hash.c: fixed erroneous checksum for config file
2316 * sh_html.c: fixed erroneous timestamp (last)
2317 * sh_tools.c: fixed connect_port (set port for cached address)
2318 * sh_srp.c: fix for '00' (='\0') in pw
2319 (last two fixes by Andreas Piesk)
2320
23210.9.4:
2322 * samhain.c: fcntl(1, ..) -> fcntl(2, ..)
2323 * sh_hash.c: copy 12 instead of 10 byte for c_attributes
2324 * 'empty directory' WARN -> INFO
2325
23260.9.3:
2327 * FreeBSD fixes:
2328 - c_random.sh: make sure /dev/random provides something
2329 rather than nothing
2330 - check for <netinet/in.h> and include it
2331 - include <sys/types.h> early
2332 - sh_utmp.c: fixed an occurence of ut_user
2333 - sh_utmp.c: #ifdef HAVE_UTTYPE static char terminated_line #endif
2334 - sh_forward.c: EBADMSG -> ENOMSG
2335 * sh_unix.c: check return value of gethostbyname
2336 * sh_entropy.c: fallback on /dev/urandom if /dev/random blocks for
2337 more than 30 sec
2338 * ... and fix the timestamp format ...
2339
23400.9.2:
2341 * ISO 8601 timestamps
2342 * Bugfix in sh_utmp (timestring overwrite)
2343 * don't use siginfo_t on Linux (garbage as of 2.2.14)
2344 * check for Linux capabilities bug when dropping root
2345 * include README for gcc compiler bug (pointed out by A. Piesk)
2346 * explicitely set -fno-strength-reduce with gcc
2347 * fixed ignoring missing files with the IgnoreAll policy
2348
23490.9.1:
2350 * more ext2flags (breaks backward database compatibility on Linux)
2351 * IgnoreAll policy modified - missing/added files reported with
2352 SeverityIgnoreAll (to handle files that may or may not be present)
2353 * Check all files, not only regular ones
2354 (bug in sh_files, originally introduced because checksum of
2355 regular files only is computed)
2356
23570.9:
2358 * use O_NOATIME if supported
2359 * --with-nocl takes argument (PW to re-enable CL parsing)
2360 * no daemon mode if initializing database
2361 * fixed segfault in yule with 'unknown file type' request
2362 * enlarged MAX_GLOBS 24 -> 32 and made the array linear
2363 * server uses last registry entry for any given client now
2364 * deploy.sh script to deploy clients to remote hosts
2365 * enhanced signal handling: SIGUSR1/SIGUSR2/SIGABRT/SIGQUIT/SIGHUP
2366 * allow y/Y/n/N for login monitoring (in addition to 0/1)
2367 * external logging scripts/programs
2368 * trustfile.c: define STICKY on Linux
2369 * reset signal mask when initializing
2370 * EINTR_RETRY wrapper
2371 * slib: sl_read, sl_write EINTR update
2372 * use sstrip when installing
2373 * more compact database format (breaks backward database compatibility)
2374 * larger download packets
2375 * TcpFlags unsigned char
2376 * cast to (char *) head in write_port
2377 * m(un)lock cast to (char *)
2378 * (1 << 31) --> (1UL << 31)
2379 * support e2fs attributes on Linux
2380 * fixes for AIX and Solaris native compilers
2381 * fixed Makefile for non-GNU make (pattern rule --> suffix rule)
2382
23830.8.1:
2384 * fixed 'is_numeric()' return value
2385
23860.8:
2387 * added option for static compilation
2388 * added option for stealth with non-hidden config file
2389 * added option for disabling command line parsing
2390 * all options can be set in the configuration file now
2391 * stealth: xor strings in database file
2392 * fixed bug in mailer code ([] in HELO)
2393 * print timestamp when asking for key
2394 * 'micro' stealth mode (no hidden configuration file)
2395 * simplified slib
2396 * int->long for uids/gids in trustfile
2397 * moved mailkey from data to code
2398 * shell script for entropy (stronger default key)
2399 * general code cleanup
2400 * better error checking in client/server code
2401 * detect out-of-sync messages
2402 * check state across protocol passes in server
2403 * make sure authentication is mutual
2404 * file download to client
2405 * reserve six file descriptors in server
2406 * mlock queue buffer if LOG_KEY
2407 * improved robustness in bignum (don't fail on free())
2408 * per-directory recursion depths
2409 * RFC821 compliance: empty line at end of header, To field, Date field
2410 * RFC821 compliance: make e-mail transfer relieable
2411 * fix detection of hardlink changes
2412 * checksum verification for calling gpg/pgp
2413 * CL option '-S' not required for server-only binary
2414 * eliminate CL options that may leak privileged information
2415 if the program is SUID
2416 * skip leading white space in configuration file
2417 * allow nested conditionals in configuration file
2418 * allow whitespace before and after '=' in configuration file
2419 * don't leak file descriptors to child processes
2420 * make message transfer relieable
2421 * always report error on abnormal termination of connection
2422
24230.7:
2424 * support for alpha machines
2425 * stop TCP logging after exit message
2426 * limit connections in server (DoS attacks)
2427 * move string handling to slib
2428 * move file handling to slib
2429 * timestring without space
2430 * changed report format
2431 * SUID bugfix - use euid when checking logfile ownership
2432 * SUID bugfix - get root for lstat()
2433 * SUID bugfix - get root for opendir()
2434 * store number of hardlinks
2435 * send no message if polling empty queue
2436 * include tiger 64-bit implementation (portability)
2437 * codes for error conditions
2438 * mail check: handle multiple, overlapping audit trails
2439 * security fix: no append to database if SUID
2440 * fix sh_entropy.c (BUFSIZ -> BUF_ENT)
2441 * read command line before config file
2442 * PGP signing of config/database files
2443 * checksum of config file reported
2444 * checking for attributes only
2445
24460.6:
2447 * more syslogish priority specification
2448 * fixed segfault in sh_mem_check, apparently this was also
2449 the reason for the segfault in atexit()
2450 * allow for compilation with SRP authentication
2451 * fixed tiger checksum computation
2452 * fixed broken logfile verification for second and further audit trails
2453 * test program added
2454 * documentation improved
2455 * sh_forward_make_client: bug fixed in[8]->in[i]
2456 * sh_error.h: fixed missing #include <errno.h>
2457 * configure.in: fixed missing strerror() test
2458 * sh_utmp.c: check logins/logouts
2459 * check for missing files
2460 * only reset access time if necessary
2461 * O_EXCL in open()
2462 * limit environment to TZ in execve (sh_entropy.c, not used on Linux)
2463 * use trustfile() to determine whether logfile dir is trustworthy
2464 * strip head instead of tail for numerical address
2465 * store messages in fifo during log server outage
2466 * re-init session key after server outage
2467
24680.5 (21-12-1999):
2469 * added option for mail relay server
2470 * own popen() implementation in sh_entropy() (portability)
2471 * fixed error in sh_util_basename() (returned NULL for base == "/")
2472 * fixed segfault in strlcpy/strlcat (check for src == NULL)
2473 * FILENAME_MAX -> PATH_MAX (HP-UX 10.20)
2474 * use TIGER for 32-byte compilers (portability)
2475 * fixed hash function (do not include stdlib.h)
2476 * flush buffer before write in mailer code (IBM AIX 4.1)
2477 * make mailer code non-forking
2478 * cast argument of is...() to int (portability)
2479 * return() after _exit() for braindead compilers (portability)
2480 * optionally use inet_addr (portability)
2481 * check for broken mlock() (HP-UX 10.20)
2482 * minor code cleanups
2483 * fixed incorrect size of munlock()'ed memory in sh_error_string()
2484 * fixed a buffer overflow in the error printing routine
2485 * fixed a buffer overflow in sh_util_safe_name ()
2486 * implement SRP session key exchange
2487 * implement client/server facility
2488 * implement @host/@end construct in configuration file
2489 * preferably use uname(), and do gethostbyname() for FQDN
2490 * make vernam cipher base numeric
2491 * make OnlyStderr private in sh_error
2492 * test -e "/dev/random" --> test -r "/dev/random" (portability)
2493 * check for libsocket (portability)
2494 * add #defines for IPPORT_SMTP, IPPORT_TIMESERVER (portability)
2495 * eliminate superfluous /proc test
2496 * some unreachable code removed
2497 * cast to (byte*) replaced by cast to (word64*) in sh_tiger_hash()
2498 * check for setresuid() if no seteuid() (HP-UX 10.20)
2499
25000.4 (09-11-1999):
2501 * make sure output from /dev/random has no NULL's
2502 * one-time pad encryption for emailed keys
2503 (better than nothing ...)
2504
25050.3 (04-11-1999):
2506 * logfile readable for group
2507 * verify signatures for any file
2508 * signature block in tarball
2509 * use select() in time server routine
2510 * better protection for session keys (mlock)
2511
25120.2:
2513 * fixed incorrect man page
2514 * fixed incorrect example rc file
2515 * recursive error logging should work now
2516
25170.1:
2518 * initial release -- on Samhain 1999, of course
2519
2520development start:
2521 * probably 29-06-1999
2522
Note: See TracBrowser for help on using the repository browser.