source: trunk/docs/Changelog@ 458

Last change on this file since 458 was 458, checked in by katerina, 10 years ago

Fix for ticket #358 (repetitive lstat warning) and #359 (reporting of added/deleted top level directories).

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