source: trunk/docs/Changelog@ 486

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

Fix for ticket #384 (use logger utility in posix compliant way).

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