source: trunk/docs/Changelog@ 492

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

Fix for ticket #388 (logfile rotation).

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