source: trunk/docs/Changelog@ 513

Last change on this file since 513 was 513, checked in by katerina, 8 years ago

Fix for ticket #406 (wrong path in error message).

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