source: trunk/docs/Changelog@ 447

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

Fix for ticket #349 (no inline asm for cygwin).

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